Skip to content
This repository was archived by the owner on Dec 25, 2018. It is now read-only.

Commit 82832e4

Browse files
committed
Linting fixes
1 parent bdbd8f8 commit 82832e4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ module.exports = function PurifyPlugin(options) {
3737
compilation.plugin('additional-assets', (cb) => {
3838
// Go through chunks and include them to the paths that will be parsed
3939
if (options.modulePathsTest) {
40-
let regexp = new RegExp(options.modulePathsTest)
41-
let includeModules = []
40+
const regexp = new RegExp(options.modulePathsTest);
41+
const includeModules = [];
4242

43-
compilation.modules.forEach(mod => {
44-
let res = mod.resource
43+
compilation.modules.forEach((mod) => {
44+
const res = mod.resource;
4545

4646
if (regexp.test(res)) {
47-
includeModules.push(res)
47+
includeModules.push(res);
4848
}
49-
})
49+
});
5050

5151
if (includeModules.length) {
52-
entryPaths = entryPaths.concat(includeModules)
52+
entryPaths = entryPaths.concat(includeModules);
5353
}
5454
}
5555

0 commit comments

Comments
 (0)