Skip to content

Commit fdeaa05

Browse files
authored
fix(build): change PurgeCSSPlugin config to check tsx files (#245)
Fix PurgeCSSPlugin config not checking tsx files
1 parent 5a438d4 commit fdeaa05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ const cfg = {
8080
if (isProd) {
8181
cfg.plugins.push(new PurgeCSSPlugin({
8282
minimize: true,
83-
moduleExtensions: ['.js', '.jsx'],
83+
moduleExtensions: ['.js', '.jsx', '.ts', '.tsx'],
8484
paths: glob([
85-
join(__dirname, 'src', '**/*.js'),
85+
join(__dirname, 'src', '**/*.{js,jsx,ts,tsx}'),
8686
join(__dirname, 'public', '*.html')
8787
])
8888
}))

0 commit comments

Comments
 (0)