Skip to content

Commit de81e7d

Browse files
nazar1uaatinux
andauthoredJan 25, 2023
fix: css intellisense not working (#596)
* fix: css intellisense not working (#593) * chore: add comment Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
1 parent 9a72aab commit de81e7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/module.ts

+2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ export default defineNuxtModule<ModuleOptions>({
141141
// Write cjs version of config to support vscode extension
142142
const resolveConfig: any = await import('tailwindcss/resolveConfig.js').then(r => r.default || r)
143143
const resolvedConfig = resolveConfig(tailwindConfig)
144+
// Avoid creating null plugins for intelisense
145+
resolvedConfig.plugins = []
144146
addTemplate({
145147
filename: 'tailwind.config.cjs',
146148
getContents: () => `module.exports = ${JSON.stringify(resolvedConfig, null, 2)}`,

0 commit comments

Comments
 (0)
Please sign in to comment.