From a35ac92807fc264989e329f0ce31158e33c22898 Mon Sep 17 00:00:00 2001
From: Glenn Reyes <glenn@glennreyes.com>
Date: Sat, 23 Jul 2016 09:02:44 +0200
Subject: [PATCH] Resolve imported CSS files from node_modules (#105)

* Resolve imported CSS files from anywhere
* Resolve imported CSS files from src and node_modules folder only

Closes #103
---
 config/webpack.config.dev.js  | 2 +-
 config/webpack.config.prod.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js
index 65b3936cc..2a163eb4f 100644
--- a/config/webpack.config.dev.js
+++ b/config/webpack.config.dev.js
@@ -67,7 +67,7 @@ module.exports = {
       },
       {
         test: /\.css$/,
-        include: srcPath,
+        include: [srcPath, nodeModulesPath],
         loader: 'style!css!postcss'
       },
       {
diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js
index f372286a2..94f64b087 100644
--- a/config/webpack.config.prod.js
+++ b/config/webpack.config.prod.js
@@ -63,7 +63,7 @@ module.exports = {
       },
       {
         test: /\.css$/,
-        include: srcPath,
+        include: [srcPath, nodeModulesPath],
         // Disable autoprefixer in css-loader itself:
         // https://github.com/webpack/css-loader/issues/281
         // We already have it thanks to postcss.
-- 
GitLab