justboil / admin-one-vue-tailwind

Free Vue.js 3.x Tailwind 3.x admin dashboard template with dark mode. Vite builds. Pinia state. Laravel integration available
https://justboil.github.io/admin-one-vue-tailwind/
MIT License
2.14k stars 402 forks source link

[vite-node] [plugin:vite:css] [@tailwind base; and other imports #48

Open ElvinKyungu opened 11 months ago

ElvinKyungu commented 11 months ago

How can I solve this problem with nuxtjs? Is it linked to the import? Because I have my main.css file in assets/css that I import from my nuxtconfig file.

And I don't know what the problem is

emlazaro commented 7 months ago

@ElvinKyungu

Have you tried configuring the postcss in your nuxt.config.ts file like this?

postcss: {
    plugins: {
      "postcss-import": {},
      "tailwindcss/nesting": {},
      tailwindcss: {},
      autoprefixer: {},
    },
},

also don't forget to npm install tailwindcss/nesting and npm install postcss-import.