Skip to content

Commit 56931ef

Browse files
digital-flowersNMFR
authored andcommitted
making it work with webpack compression plugin (NMFR#18)
Support webpack compression plugin webpack compression plugin use the phase 'compilation.optimize-assets' so we should use the phase 'compilation.optimize-chunk-assets' * using LastCallWebpackPlugin.PHASE.OPTIMIZE_CHUNK_ASSETS * using LastCallWebpackPlugin.prototype.PHASE.OPTIMIZE_CHUNK_ASSETS
1 parent d57dace commit 56931ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function OptimizeCssAssetsPlugin(options) {
2323
this.lastCallInstance = new LastCallWebpackPlugin({
2424
assetProcessors: [
2525
{
26+
phase: LastCallWebpackPlugin.prototype.PHASE.OPTIMIZE_CHUNK_ASSETS,
2627
regExp: this.options.assetNameRegExp,
2728
processor: function (assetName, asset, assets) {
2829
return self.processCss(assetName, asset, assets);

0 commit comments

Comments
 (0)