File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -316,10 +316,11 @@ var Project = function () {
316
316
}
317
317
318
318
if ( chunks . length > 0 ) {
319
-
319
+ var chunkFilename = filenameTpl . filename ;
320
+ chunkFilename = chunkFilename . replace ( "[ext]" , '.js' ) ;
320
321
webpackConfig . plugins . push ( new webpack . optimize . CommonsChunkPlugin ( {
321
322
name : chunks ,
322
- filename : filenameTpl . filename ,
323
+ filename : chunkFilename ,
323
324
minChunks : commonsChunk . minChunks ? commonsChunk . minChunks : 2
324
325
} ) ) ;
325
326
}
Original file line number Diff line number Diff line change @@ -289,11 +289,12 @@ class Project {
289
289
290
290
291
291
if ( chunks . length > 0 ) {
292
-
292
+ let chunkFilename = filenameTpl . filename ;
293
+ chunkFilename = chunkFilename . replace ( '[ext]' , '.js' ) ;
293
294
webpackConfig . plugins . push (
294
295
new webpack . optimize . CommonsChunkPlugin ( {
295
296
name : chunks ,
296
- filename : filenameTpl . filename ,
297
+ filename : chunkFilename ,
297
298
minChunks : commonsChunk . minChunks ? commonsChunk . minChunks : 2
298
299
} )
299
300
) ;
You can’t perform that action at this time.
0 commit comments