0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

Generate tailwind config with type imported (#3585)

This commit is contained in:
(◕ᴥ◕) 2022-06-15 03:13:32 +08:00 committed by GitHub
parent 60653c7340
commit 56a99bebbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,8 @@ export const ALIASES = new Map([
['tailwindcss', 'tailwind'], ['tailwindcss', 'tailwind'],
]); ]);
export const CONFIG_STUB = `import { defineConfig } from 'astro/config';\n\nexport default defineConfig({});`; 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}'], content: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'],
theme: { theme: {
extend: {}, extend: {},