File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ if (isInDebugMode) {
24
24
relativePath = '../template' ;
25
25
}
26
26
var srcPath = path . resolve ( __dirname , relativePath , 'src' ) ;
27
+ var rootNodeModulesPath = path . resolve ( __dirname , relativePath , 'node_modules' ) ;
27
28
var nodeModulesPath = path . join ( __dirname , '..' , 'node_modules' ) ;
28
29
var indexHtmlPath = path . resolve ( __dirname , relativePath , 'index.html' ) ;
29
30
var faviconPath = path . resolve ( __dirname , relativePath , 'favicon.ico' ) ;
@@ -67,7 +68,7 @@ module.exports = {
67
68
} ,
68
69
{
69
70
test : / \. c s s $ / ,
70
- include : [ srcPath , nodeModulesPath ] ,
71
+ include : [ srcPath , rootNodeModulesPath ] ,
71
72
loader : 'style!css!postcss'
72
73
} ,
73
74
{
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ if (process.argv[2] === '--debug-template') {
23
23
relativePath = '../template' ;
24
24
}
25
25
var srcPath = path . resolve ( __dirname , relativePath , 'src' ) ;
26
+ var rootNodeModulesPath = path . resolve ( __dirname , relativePath , 'node_modules' ) ;
26
27
var nodeModulesPath = path . join ( __dirname , '..' , 'node_modules' ) ;
27
28
var indexHtmlPath = path . resolve ( __dirname , relativePath , 'index.html' ) ;
28
29
var faviconPath = path . resolve ( __dirname , relativePath , 'favicon.ico' ) ;
@@ -68,7 +69,7 @@ module.exports = {
68
69
} ,
69
70
{
70
71
test : / \. c s s $ / ,
71
- include : [ srcPath , nodeModulesPath ] ,
72
+ include : [ srcPath , rootNodeModulesPath ] ,
72
73
// Disable autoprefixer in css-loader itself:
73
74
// https://github.com/webpack/css-loader/issues/281
74
75
// We already have it thanks to postcss.
You can’t perform that action at this time.
0 commit comments