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