From 746f1021a564a8b49c0635d1daf7d1395ae6d2f9 Mon Sep 17 00:00:00 2001 From: Glenn Reyes Date: Fri, 22 Jul 2016 23:58:00 +0200 Subject: [PATCH 1/2] Resolve imported CSS files from anywhere --- config/webpack.config.dev.js | 1 - config/webpack.config.prod.js | 1 - 2 files changed, 2 deletions(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 65b3936ccb8..f85408db1db 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -67,7 +67,6 @@ module.exports = { }, { test: /\.css$/, - include: srcPath, loader: 'style!css!postcss' }, { diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index f372286a279..b3ed8e705be 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -63,7 +63,6 @@ module.exports = { }, { test: /\.css$/, - include: srcPath, // Disable autoprefixer in css-loader itself: // https://github.com/webpack/css-loader/issues/281 // We already have it thanks to postcss. From 40a1cc44657e313d05406232a5078bb50acf6fca Mon Sep 17 00:00:00 2001 From: Glenn Reyes Date: Sat, 23 Jul 2016 00:55:42 +0200 Subject: [PATCH 2/2] Resolve imported CSS files from src and node_modules folder only --- config/webpack.config.dev.js | 1 + config/webpack.config.prod.js | 1 + 2 files changed, 2 insertions(+) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index f85408db1db..2a163eb4fa0 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -67,6 +67,7 @@ module.exports = { }, { test: /\.css$/, + include: [srcPath, nodeModulesPath], loader: 'style!css!postcss' }, { diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index b3ed8e705be..94f64b087bc 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -63,6 +63,7 @@ module.exports = { }, { test: /\.css$/, + include: [srcPath, nodeModulesPath], // Disable autoprefixer in css-loader itself: // https://github.com/webpack/css-loader/issues/281 // We already have it thanks to postcss.