File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ module.exports = (options = {}) => ({
20
20
multiple : [ {
21
21
// These will be handled by file-loader. We need the location because
22
22
// they are parsed as URIs and will throw errors if not fully formed.
23
+ // The !! prefix causes it to ignore other loaders (doesn't work).
23
24
search : "require\\.toUrl\\(" ,
24
- replace : "location.protocol + '//' + location.host + '/' + require('file-loader?name=[path][name].[ext]!' + " ,
25
+ replace : "location.protocol + '//' + location.host + '/' + require('!! file-loader?name=[path][name].[ext]!' + " ,
25
26
flags : "g" ,
26
27
} , {
27
28
search : "require\\.__\\$__nodeRequire" ,
@@ -59,8 +60,10 @@ module.exports = (options = {}) => ({
59
60
test : / ( ^ .? | \. [ ^ d ] | [ ^ . ] d | [ ^ . ] [ ^ d ] ) \. t s x ? $ / ,
60
61
} , {
61
62
// Test CSS isn't required. The rest is supposed to be served in separate
62
- // pages or iframes so we don't need to include it here.
63
- exclude : / t e s t | c o d e \/ e l e c t r o n - b r o w s e r \/ .+ \. c s s $ / ,
63
+ // pages or iframes so we don't need to include it here. Also excluding
64
+ // markdown.css because even though it uses the file-loader as shown above
65
+ // in the string replace, it's still making its way into the main CSS.
66
+ exclude : / t e s t | c o d e \/ e l e c t r o n - b r o w s e r \/ .+ \. c s s $ | m a r k d o w n .c s s $ / ,
64
67
test : / \. s ? c s s $ / ,
65
68
// This is required otherwise it'll fail to resolve CSS in common.
66
69
include : root ,
You can’t perform that action at this time.
0 commit comments