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:
parent
9d6e0b5dba
commit
f268451268
3 changed files with 7 additions and 2 deletions
5
.changeset/shaggy-bulldogs-beam.md
Normal file
5
.changeset/shaggy-bulldogs-beam.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"astro": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
tailwind: add a default "contents" configuration that works for most Astro projects
|
|
@ -1,5 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: [],
|
content: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {},
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,7 +18,7 @@ export const ALIASES = new Map([
|
||||||
]);
|
]);
|
||||||
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 = `module.exports = {
|
||||||
content: [],
|
content: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue