Skip to content

Commit

Permalink
small tailwind example config fix (#2893)
Browse files Browse the repository at this point in the history
* fix tailwind config example

* Create shaggy-bulldogs-beam.md
  • Loading branch information
FredKSchott committed Mar 26, 2022
1 parent 9d6e0b5 commit f268451
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-bulldogs-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

tailwind: add a default "contents" configuration that works for most Astro projects
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
content: [],
content: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/add/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
},
Expand Down

0 comments on commit f268451

Please sign in to comment.