Skip to content

Commit fd0af31

Browse files
JPortegijsbebraw
authored andcommitted
Update README.md using glob-all (webpack-contrib#105)
1 parent 7bd4b10 commit fd0af31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ module.exports = {
6464

6565
And, that's it! Your scripts and view files will be scanned for classes, and those that are unused will be stripped off your CSS - aka. "purified".
6666

67+
In order to use this plugin to look into multiple paths you will need to:
68+
69+
1. npm install --save glob-all
70+
2. Add const glob = require('glob-all'); at the top of your webpack config
71+
3. Then you can pass your paths to an array, like so:
72+
```
73+
paths: glob.sync([
74+
path.join(__dirname, '.php'),
75+
path.join(__dirname, 'partials/.php')
76+
]),
77+
```
78+
6779
> You can pass an object (`<entry> -> [<absolute path>]`) to `paths` if you want to control the behavior per entry.
6880
6981
<h2 align="center">Options</h2>

0 commit comments

Comments
 (0)