Skip to content

Commit 75435b7

Browse files
authored
Merge pull request faceyspacey#3 from scottdj92/json-tests
Add modes for fallbackLoader and loader. Add schemaTester to ExtractT…
2 parents 817f6c5 + 6f23986 commit 75435b7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ ExtractTextPlugin.prototype.extract = function(options) {
184184
}
185185
if(Array.isArray(options) || isString(options) || typeof options.options === "object" || typeof options.query === 'object') {
186186
options = { loader: options };
187+
} else {
188+
schemaTester(options);
187189
}
188190
var loader = options.loader;
189191
var before = options.fallbackLoader || [];

schema/schema.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,23 @@
1313
},
1414
"fallbackLoader": {
1515
"description": "A loader that webpack can fall back to if the original one fails.",
16-
"type": "string"
16+
"modes": {
17+
"type": "string",
18+
"type": "object",
19+
"type": "array"
20+
}
1721
},
1822
"filename": {
1923
"description": "The filename and path that ExtractTextPlugin will extract to",
2024
"type": "string"
2125
},
2226
"loader": {
2327
"description": "The loader that ExtractTextPlugin will attempt to load through.",
24-
"type": "string"
28+
"modes": {
29+
"type": "string",
30+
"type": "object",
31+
"type": "array"
32+
}
2533
},
2634
"publicPath": {
2735
"description": "",

0 commit comments

Comments
 (0)