From 56a99bebbe7cf37473e6985bef26a280e6036e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=28=E2=97=95=E1=B4=A5=E2=97=95=29?= Date: Wed, 15 Jun 2022 03:13:32 +0800 Subject: [PATCH] Generate tailwind config with type imported (#3585) --- packages/astro/src/core/add/consts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/core/add/consts.ts b/packages/astro/src/core/add/consts.ts index ccd80d3863..e17d704d59 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: {},