Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix - Fix ignoreOrder test
Browse files Browse the repository at this point in the history
  • Loading branch information
bebraw committed Feb 4, 2017
1 parent 10781f5 commit 011de5a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
4 changes: 4 additions & 0 deletions schema/plugin-schema.json
Expand Up @@ -23,6 +23,10 @@
"description": "The filename and path that ExtractTextPlugin will extract to",
"type": "string"
},
"ignoreOrder": {
"description": "Ignore dependency order (useful for CSS Modules)",
"type": "boolean"
},
"loader": {
"description": "The loader that ExtractTextPlugin will attempt to load through.",
"modes": {
Expand Down
35 changes: 23 additions & 12 deletions test/cases/order-undefined-error/webpack.config.js
@@ -1,15 +1,26 @@
var ExtractTextPlugin = require("../../../");
module.exports = {
entry: "./index.js",
module: {
loaders: [{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style', 'css?modules')
}]
},
plugins: [
new ExtractTextPlugin('file.css', {
ignoreOrder: true
})
]
entry: "./index.js",
module: {
loaders: [
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: {
loader: 'css-loader',
options: {
modules: true
}
}
})
}
]
},
plugins: [
new ExtractTextPlugin({
filename: 'file.css',
ignoreOrder: true
})
]
}

0 comments on commit 011de5a

Please sign in to comment.