This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +38
-1
lines changed
test/cases/order-undefined-error Expand file tree Collapse file tree 8 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
289289 extractedChunks . forEach ( function ( extractedChunk ) {
290290 if ( extractedChunk . modules . length ) {
291291 extractedChunk . modules . sort ( function ( a , b ) {
292- if ( isInvalidOrder ( a , b ) ) {
292+ if ( ! options . ignoreOrder && isInvalidOrder ( a , b ) ) {
293293 compilation . errors . push ( new OrderUndefinedError ( a . getOriginalModule ( ) ) ) ;
294294 compilation . errors . push ( new OrderUndefinedError ( b . getOriginalModule ( ) ) ) ;
295295 }
Original file line number Diff line number Diff line change 1+ .a {
2+ composes : c1 from './c1.css' ;
3+ composes : c2 from './c2.css' ;
4+ }
Original file line number Diff line number Diff line change 1+ .b {
2+ composes : c2 from './c2.css' ;
3+ composes : c1 from './c1.css' ;
4+ }
Original file line number Diff line number Diff line change 1+ .c1 {
2+ }
Original file line number Diff line number Diff line change 1+ .c2 {
2+ }
Original file line number Diff line number Diff line change 1+ ._3QiTkN7JPds2C9Bq73MpOX {
2+ }
3+ ._3dtwYD12yqGZUJ-uPQLu9z {
4+ }
5+ ._32HVXkGocfWZMaHoXEFkED {
6+ }
7+ .hbZI7DlQBB9VYNCgL20kL {
8+ }
Original file line number Diff line number Diff line change 1+ require ( './a.css' ) ;
2+ require ( './b.css' ) ;
Original file line number Diff line number Diff line change 1+ var ExtractTextPlugin = require ( "../../../" ) ;
2+ module . exports = {
3+ entry : "./index.js" ,
4+ module : {
5+ loaders : [ {
6+ test : / \. c s s $ / ,
7+ loader : ExtractTextPlugin . extract ( 'style' , 'css?modules' )
8+ } ]
9+ } ,
10+ plugins : [
11+ new ExtractTextPlugin ( 'file.css' , {
12+ ignoreOrder : true
13+ } )
14+ ]
15+ }
You can’t perform that action at this time.
0 commit comments