diff --git a/index.js b/index.js index 82f1acff..b216c187 100644 --- a/index.js +++ b/index.js @@ -289,7 +289,7 @@ ExtractTextPlugin.prototype.apply = function(compiler) { extractedChunks.forEach(function(extractedChunk) { if(extractedChunk.modules.length) { extractedChunk.modules.sort(function(a, b) { - if(isInvalidOrder(a, b)) { + if(!options.ignoreOrder && isInvalidOrder(a, b)) { compilation.errors.push(new OrderUndefinedError(a.getOriginalModule())); compilation.errors.push(new OrderUndefinedError(b.getOriginalModule())); }