Skip to content

Commit

Permalink
fix: css intellisense not working (#596)
Browse files Browse the repository at this point in the history
* fix: css intellisense not working (#593)

* chore: add comment

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
  • Loading branch information
nazar1ua and Atinux committed Jan 25, 2023
1 parent 9a72aab commit de81e7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ export default defineNuxtModule<ModuleOptions>({
// Write cjs version of config to support vscode extension
const resolveConfig: any = await import('tailwindcss/resolveConfig.js').then(r => r.default || r)
const resolvedConfig = resolveConfig(tailwindConfig)
// Avoid creating null plugins for intelisense
resolvedConfig.plugins = []
addTemplate({
filename: 'tailwind.config.cjs',
getContents: () => `module.exports = ${JSON.stringify(resolvedConfig, null, 2)}`,
Expand Down

0 comments on commit de81e7d

Please sign in to comment.