We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f900188 commit 2743cfaCopy full SHA for 2743cfa
1 file changed
packages/purgecss-webpack-plugin/src/index.ts
@@ -53,16 +53,16 @@ export default class PurgeCSSPlugin {
53
}
54
55
initializePlugin(compilation: Compilation) {
56
- const entryPaths =
57
- typeof this.options.paths === "function"
58
- ? this.options.paths()
59
- : this.options.paths;
60
-
61
- entryPaths.forEach(p => {
62
- if (!fs.existsSync(p)) throw new Error(`Path ${p} does not exist.`);
63
- });
64
65
compilation.hooks.additionalAssets.tapPromise(pluginName, () => {
+ const entryPaths =
+ typeof this.options.paths === "function"
+ ? this.options.paths()
+ : this.options.paths;
+
+ entryPaths.forEach(p => {
+ if (!fs.existsSync(p)) throw new Error(`Path ${p} does not exist.`);
+ });
66
return this.runPluginHook(compilation, entryPaths);
67
});
68
0 commit comments