This repository was archived by the owner on Feb 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ module.exports = {
5050 plugins: [
5151 new ExtractTextPlugin (' [name].css?[hash]' ),
5252 new PurgecssPlugin ({
53- paths: glob .sync (` ${ PATHS .src } /*` )
53+ paths: glob .sync (` ${ PATHS .src } /**/* ` , { nodir : true } )
5454 })
5555 ]
5656}
@@ -73,14 +73,14 @@ const PATHS = {
7373
7474// In the webpack configuration
7575new PurgecssPlugin ({
76- paths: glob .sync (` ${ PATHS .src } /*` )
76+ paths: glob .sync (` ${ PATHS .src } /**/* ` , { nodir : true } )
7777})
7878```
7979
8080If you want to regenerate the paths list on every compilation (e.g. with ` --watch ` ), then you can also pass a function:
8181``` js
8282new PurgecssPlugin ({
83- paths : () => glob .sync (` ${ PATHS .src } /*` )
83+ paths : () => glob .sync (` ${ PATHS .src } /**/* ` , { nodir : true } )
8484})
8585```
8686
@@ -90,7 +90,7 @@ You can specify entrypoints to the purgecss-webpack-plugin with the option only:
9090
9191``` js
9292new PurgecssPlugin ({
93- paths: glob .sync (` ${ PATHS .src } /*` ),
93+ paths: glob .sync (` ${ PATHS .src } /**/* ` , { nodir : true } ),
9494 only: [' bundle' , ' vendor' ]
9595})
9696```
You can’t perform that action at this time.
0 commit comments