Skip to content

Commit

Permalink
Fix tailwind integration in markdown files (withastro#3305)
Browse files Browse the repository at this point in the history
* Fix tailwind integration in markdown files

* 3 character PR -> 9 character PR
  • Loading branch information
obj-obj committed May 6, 2022
1 parent 4639a04 commit 2864d09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
content: ['./src/**/*.{astro,html,js,jsx,md,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: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
content: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');

module.exports = {
content: [path.join(__dirname, 'src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}')],
content: [path.join(__dirname, 'src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}')],
theme: {
extend: {
colors: {
Expand Down

0 comments on commit 2864d09

Please sign in to comment.