suhaylmv
suhaylmv
Explore posts from servers
NNuxt
Created by suhaylmv on 11/17/2024 in #❓・help
Tailwind works, but doesn't show suggestions (intellisense) in a Nuxt project
Here's the relevant content inside the tailwind config file:
export default {
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./pages/*.vue",
"./plugins/**/*.{js,ts}",
"./app.vue",
"./error.vue",
],
...
export default {
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./pages/*.vue",
"./plugins/**/*.{js,ts}",
"./app.vue",
"./error.vue",
],
...
And here's the nuxt config file:
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
css: ['~/assets/css/main.css'],

postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},

modules: ['@nuxtjs/tailwindcss'],
})
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
css: ['~/assets/css/main.css'],

postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},

modules: ['@nuxtjs/tailwindcss'],
})
25 replies