0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

small tailwind example config fix (#2893)

* fix tailwind config example

* Create shaggy-bulldogs-beam.md
This commit is contained in:
Fred K. Schott 2022-03-25 17:11:45 -07:00 committed by GitHub
parent 9d6e0b5dba
commit f268451268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
tailwind: add a default "contents" configuration that works for most Astro projects

View file

@ -1,5 +1,5 @@
module.exports = {
content: [],
content: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},

View file

@ -18,7 +18,7 @@ export const ALIASES = new Map([
]);
export const CONFIG_STUB = `import { defineConfig } from 'astro/config';\n\nexport default defineConfig({});`;
export const TAILWIND_CONFIG_STUB = `module.exports = {
content: [],
content: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},