summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar (◕ᴥ◕) <ratson@users.noreply.github.com> 2022-06-15 03:13:32 +0800
committerGravatar GitHub <noreply@github.com> 2022-06-14 14:13:32 -0500
commit56a99bebbe7cf37473e6985bef26a280e6036e16 (patch)
treed4170ca6aa1e57c83e4060124cdf728956c1d3bb
parent60653c73404ed8b5e6b1a6eada47c0c45327a737 (diff)
downloadastro-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.ts3
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: {},