-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overwrite content options is not working #591
Comments
Why using a function for content? |
@atinux I refer to the document's |
I didn't see an option in the source code of the module for |
@jheng-jie can you check with 6.3.0? |
@ineshbose 6.3.0 is working! thank you very much. // nuxt.config.ts
{
tailwindcss: {
config: {
content(origin: TailwindConfig['content']) {
console.log('origin', origin)
// overwrite
return [
'./src/App.vue',
'./src/theme/_common/**/*.{vue,scss}',
`./src/theme/${process.env.VITE_THEME}/**/*.{vue,scss}`,
]
},
},
}
} |
package.json
i tried various settings. but overriding always doesn't work
nuxt.config.ts
is not working.
tailwind.config.js
will throw the error.
Cannot restart nuxt: (tailwindConfig.content || []) is not iterable
the following settings are possible. but not formal
nuxt.config.ts
tailwind.config.js
what i need is overwrite not merge. can anyone help?
The text was updated successfully, but these errors were encountered: