@caweb/css-audit-webpack-plugin 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -126,8 +126,8 @@ class CAWebCSSAuditPlugin {
|
|
|
126
126
|
// // });
|
|
127
127
|
compiler.hooks.thisCompilation.tap(pluginName, (compilation) => {
|
|
128
128
|
|
|
129
|
-
compiler.hooks.done.
|
|
130
|
-
(stats
|
|
129
|
+
compiler.hooks.done.tap(pluginName,
|
|
130
|
+
(stats) => {
|
|
131
131
|
console.log('<i> \x1b[32m[webpack-dev-middleware] Running CSS Auditor...\x1b[0m');
|
|
132
132
|
|
|
133
133
|
// get all .css files in the output directory and subdirectories
|
|
@@ -137,10 +137,8 @@ class CAWebCSSAuditPlugin {
|
|
|
137
137
|
console.log(`<i> \x1b[32m[webpack-dev-middleware] CSS Auditor completed successfully. Report can be viewed at \x1b[34m ${new URL(`${auditUrl}${staticDir.publicPath}/${this.config.filename}.html`).toString()}\x1b[0m`);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
|
|
141
140
|
});
|
|
142
141
|
});
|
|
143
|
-
// });
|
|
144
142
|
|
|
145
143
|
}
|
|
146
144
|
|