File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ module.exports = (options = {}) => ({
2222 loader : "ignore-loader" ,
2323 } ] ,
2424 } , {
25- test : / e l e c t r o n - b r o w s e r .+ \. h t m l $ | c o d e \/ e l e c t r o n - b r o w s e r \/ .+ \. c s s / ,
25+ test : / e l e c t r o n - b r o w s e r .+ \. h t m l $ | 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 $ / ,
2626 use : [ {
27- loader : "ignore-loader" ,
27+ loader : "file-loader" ,
28+ options : {
29+ name : "[path][name].[ext]" ,
30+ } ,
2831 } ] ,
2932 } , {
3033 test : / \. n o d e $ / ,
@@ -35,9 +38,10 @@ module.exports = (options = {}) => ({
3538 } ] ,
3639 test : / ( ^ .? | \. [ ^ d ] | [ ^ . ] d | [ ^ . ] [ ^ d ] ) \. t s x ? $ / ,
3740 } , {
38- // The CSS in code/electron-browser is supposed to be served in separate
39- // pages so including it interferes with styles in vscode.
40- 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 / ,
41+ // Test CSS isn't required. The rest is supposed to be served in separate
42+ // pages or iframes, so we need to skip it here and serve it with the file
43+ // loader instead.
44+ 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 $ / ,
4145 test : / \. s ? c s s $ / ,
4246 // This is required otherwise it'll fail to resolve CSS in common.
4347 include : root ,
You can’t perform that action at this time.
0 commit comments