Skip to content

Commit 011de5a

Browse files
committed
fix - Fix ignoreOrder test
1 parent 10781f5 commit 011de5a

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

schema/plugin-schema.json

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"description": "The filename and path that ExtractTextPlugin will extract to",
2424
"type": "string"
2525
},
26+
"ignoreOrder": {
27+
"description": "Ignore dependency order (useful for CSS Modules)",
28+
"type": "boolean"
29+
},
2630
"loader": {
2731
"description": "The loader that ExtractTextPlugin will attempt to load through.",
2832
"modes": {
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
var ExtractTextPlugin = require("../../../");
22
module.exports = {
3-
entry: "./index.js",
4-
module: {
5-
loaders: [{
6-
test: /\.css$/,
7-
loader: ExtractTextPlugin.extract('style', 'css?modules')
8-
}]
9-
},
10-
plugins: [
11-
new ExtractTextPlugin('file.css', {
12-
ignoreOrder: true
13-
})
14-
]
3+
entry: "./index.js",
4+
module: {
5+
loaders: [
6+
{
7+
test: /\.css$/,
8+
use: ExtractTextPlugin.extract({
9+
fallback: 'style-loader',
10+
use: {
11+
loader: 'css-loader',
12+
options: {
13+
modules: true
14+
}
15+
}
16+
})
17+
}
18+
]
19+
},
20+
plugins: [
21+
new ExtractTextPlugin({
22+
filename: 'file.css',
23+
ignoreOrder: true
24+
})
25+
]
1526
}

0 commit comments

Comments
 (0)