diff options
author | 2022-06-15 03:13:32 +0800 | |
---|---|---|
committer | 2022-06-14 14:13:32 -0500 | |
commit | 56a99bebbe7cf37473e6985bef26a280e6036e16 (patch) | |
tree | d4170ca6aa1e57c83e4060124cdf728956c1d3bb | |
parent | 60653c73404ed8b5e6b1a6eada47c0c45327a737 (diff) | |
download | astro-56a99bebbe7cf37473e6985bef26a280e6036e16.tar.gz astro-56a99bebbe7cf37473e6985bef26a280e6036e16.tar.zst astro-56a99bebbe7cf37473e6985bef26a280e6036e16.zip |
Generate tailwind config with type imported (#3585)
-rw-r--r-- | packages/astro/src/core/add/consts.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/astro/src/core/add/consts.ts b/packages/astro/src/core/add/consts.ts index ccd80d386..e17d704d5 100644 --- a/packages/astro/src/core/add/consts.ts +++ b/packages/astro/src/core/add/consts.ts @@ -17,7 +17,8 @@ export const ALIASES = new Map([ ['tailwindcss', 'tailwind'], ]); export const CONFIG_STUB = `import { defineConfig } from 'astro/config';\n\nexport default defineConfig({});`; -export const TAILWIND_CONFIG_STUB = `module.exports = { +export const TAILWIND_CONFIG_STUB = `/** @type {import('tailwindcss').Config} */ +module.exports = { content: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'], theme: { extend: {}, |