File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -313,14 +313,14 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
313
313
// add the css files to assets and the files array corresponding to its chunks
314
314
compilation . plugin ( "additional-assets" , function ( callback ) {
315
315
extractedChunks . forEach ( function ( extractedChunk ) {
316
- if ( extractedChunk . getNumberOfModules ( ) ) {
317
- extractedChunk . sortModules ( ( a , b ) => {
318
- if ( ! options . ignoreOrder && isInvalidOrder ( a , b ) ) {
319
- compilation . errors . push ( new OrderUndefinedError ( a . getOriginalModule ( ) ) ) ;
320
- compilation . errors . push ( new OrderUndefinedError ( b . getOriginalModule ( ) ) ) ;
321
- }
322
- return getOrder ( a , b ) ;
323
- } ) ;
316
+ if ( extractedChunk . getNumberOfModules ( ) ) {
317
+ extractedChunk . sortModules ( ( a , b ) => {
318
+ if ( ! options . ignoreOrder && isInvalidOrder ( a , b ) ) {
319
+ compilation . errors . push ( new OrderUndefinedError ( a . getOriginalModule ( ) ) ) ;
320
+ compilation . errors . push ( new OrderUndefinedError ( b . getOriginalModule ( ) ) ) ;
321
+ }
322
+ return getOrder ( a , b ) ;
323
+ } ) ;
324
324
325
325
var stylesheet = this . renderExtractedChunk ( extractedChunk ) ;
326
326
var chunk = extractedChunk . originalChunk ;
You can’t perform that action at this time.
0 commit comments