<template>
{{name}}
</template>
<script>
export default {
asyncData(context) {
return { name: 'World' }
}
}
</script>
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ["@/assets/scss/main.scss"],
modules: ['nuxt-icons'],
app: {
head: {
htmlAttrs: {
lang: 'ru'
}
},
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/scss/variables/_colors.scss" as *; @use "@/assets/scss/variables/_breakpoints.scss" as *;'
}
}
}
}
})
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "3.0.0",
"sass": "^1.57.1",
"sass-loader": "^10.4.1"
},
"dependencies": {
"nuxt-icons": "^3.0.0"
}
}
<template>
<AppHeader/>
<slot />
<AppFooter/>
</template>
<script>
import AppHeader from "~/components/AppHeader/AppHeader.vue";
import AppFooter from "~/components/AppFooter/AppFooter.vue";
export default {
name: "default",
components: {AppFooter, AppHeader}
}
</script>
<style scoped>
</style>