File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ ManifestPlugin.prototype.apply = function(compiler) {
180
180
compiler . hooks . afterEmit . tap ( 'ManifestPlugin' , function ( compilation ) {
181
181
release ( ) ;
182
182
} ) ;
183
+
184
+ compilation . hooks . webpackManifestPluginAfterEmit . call ( manifest , compileCallback ) ;
183
185
} else {
184
186
compiler . plugin ( 'after-emit' , function ( compilation , cb ) {
185
187
release ( ) ;
@@ -193,6 +195,11 @@ ManifestPlugin.prototype.apply = function(compiler) {
193
195
194
196
if ( compiler . hooks ) {
195
197
compiler . hooks . compilation . tap ( 'ManifestPlugin' , function ( compilation ) {
198
+
199
+ var SyncWaterfallHook = require ( 'tapable' ) . SyncWaterfallHook ;
200
+
201
+ compilation . hooks . webpackManifestPluginAfterEmit = new SyncWaterfallHook ( [ 'manifest' , 'compileCallback' ] ) ;
202
+
196
203
compilation . hooks . moduleAsset . tap ( 'ManifestPlugin' , moduleAsset ) ;
197
204
} ) ;
198
205
compiler . hooks . emit . tap ( 'ManifestPlugin' , emit ) ;
Original file line number Diff line number Diff line change 41
41
"dependencies" : {
42
42
"fs-extra" : " ^0.30.0" ,
43
43
"lodash" : " >=3.5 <5" ,
44
- "mutexify" : " 1.0.1"
44
+ "mutexify" : " 1.0.1" ,
45
+ "tapable" : " ^1.0.0"
45
46
},
46
47
"nyc" : {
47
48
"reporter" : [
You can’t perform that action at this time.
0 commit comments