After running the command "npx nuxi generate," the css folder does not seem to be created in the static site. What could be the issue?
package.json:
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"autoprefixer": "^10.4.12",
"eslint": "^8.23.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
"nuxt": "^3.0.0-rc.11",
"postcss": "^8.4.16",
"postcss-import": "^15.0.0",
"postcss-nested": "^5.0.6",
"tailwindcss": "^3.1.8"
}
}
nuxt.config.ts:
export default defineNuxtConfig({
target: "static",
build: {
postcss: {
postcssOptions: {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
"postcss-nested": {},
autoprefixer: {},
tailwindcss: {},
},
},
},
},
});
app.vue file:
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<script setup>
useHead({
htmlAttrs: {
lang: "ru",
},
link: [
{ rel: "stylesheet", type: "text/css", href: "~/assets/css/app.css" },
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
],
});
</script>
How can I ensure that a folder with css files is created during compilation?