Skip to content

Commit 57d0542

Browse files
authored
docs: mention plugins in editor support (#675)
* fix: typeof import default in dts * chore: using nuxt convention for indexing type * docs: mention plugins in editor support * Update docs/content/2.tailwind/3.editor-support.md
1 parent c64bfbb commit 57d0542

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/content/2.tailwind/3.editor-support.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add the following configuration to your `.vscode/settings.json` file, so that Ta
2121

2222
If you use pnpm, make sure that tailwindcss is installed in your top level node_modules folder.
2323

24-
Since Tailwind CSS v3.3, [ESM/TS configuration has been supported](https://tailwindcss.com/blog/tailwindcss-v3-3#esm-and-type-script-support) so your editor should automatically configure autocomplete based on your config. If you happen to use a lower version and/or require the configuration in CommonJS, you can use the `tailwindcss:resolvedConfig` hook and a custom Nuxt module:
24+
Since Tailwind CSS v3.3, [ESM/TS configuration has been supported](https://tailwindcss.com/blog/tailwindcss-v3-3#esm-and-type-script-support) so your editor should automatically configure autocomplete based on your `tailwind.config`. If you happen to use a lower version and/or require the configuration in CommonJS, you can use the `tailwindcss:resolvedConfig` hook and a custom Nuxt module:
2525

2626
```ts [modules/tw-cjs-config.ts]
2727
import { defineNuxtModule, addTemplate } from '@nuxt/kit'
@@ -47,3 +47,5 @@ export default defineNuxtModule({
4747
},
4848
// ...
4949
```
50+
51+
This hook will allow you to customise your generated template through a module in different ways (e.g., different filename, contents, etc.). Please note that `JSON.stringify` will remove plugins from your configuration.

0 commit comments

Comments
 (0)