File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 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) {
313313 // add the css files to assets and the files array corresponding to its chunks
314314 compilation . plugin ( "additional-assets" , function ( callback ) {
315315 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+ } ) ;
324324
325325 var stylesheet = this . renderExtractedChunk ( extractedChunk ) ;
326326 var chunk = extractedChunk . originalChunk ;
You can’t perform that action at this time.
0 commit comments