Skip to content

Commit 5f036b4

Browse files
fix: make Tailwind purging work (#1)
1 parent d269a62 commit 5f036b4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
purge: ['./src/**/*.{tsx}', './public/index.html'],
2+
purge: ['./src/**/*.tsx', './**/*.tsx'],
33
darkMode: false, // or 'media' or 'class'
44
theme: {
55
extend: {},

tsdx.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ module.exports = {
66
config.plugins.push(
77
postcss({
88
plugins: [require('tailwindcss'), require('autoprefixer')],
9-
// inject: false,
10-
// // only write out CSS for the first bundle (avoids pointless extra files):
11-
// extract: !!options.writeMeta,
9+
inject: true,
1210
})
1311
);
1412
return config; // always return a config.

0 commit comments

Comments
 (0)