From 6d36ef010799c0b7124ccc18288b4ff44bf54c30 Mon Sep 17 00:00:00 2001 From: Darion Welch Date: Tue, 30 May 2017 15:31:19 -0500 Subject: [PATCH] Add ignoreOrder check --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); }