Skip to content

Commit

Permalink
fix: let purgecss only search app sources
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi authored and shauke committed Sep 1, 2021
1 parent 2069f47 commit 8db741a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/webpack/webpack.custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default (config: Configuration, angularJsonConfig: CustomWebpackBrowserSc
logger.log('setting up purgecss CSS minification');
config.plugins.push(
new purgecssPlugin({
paths: glob.sync('./{src,projects}/**/*', { nodir: true }),
paths: glob.sync('./**/src/app/**/*', { nodir: true }),
safelist: {
standard: [/(p|m)(l|r|x|y|t|b)?-[0-5]/],
greedy: [
Expand Down

0 comments on commit 8db741a

Please sign in to comment.