Skip to content

Commit a35ac92

Browse files
glennreyesmxstbr
authored andcommitted
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
1 parent 3ac4035 commit a35ac92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = {
6767
},
6868
{
6969
test: /\.css$/,
70-
include: srcPath,
70+
include: [srcPath, nodeModulesPath],
7171
loader: 'style!css!postcss'
7272
},
7373
{

config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = {
6363
},
6464
{
6565
test: /\.css$/,
66-
include: srcPath,
66+
include: [srcPath, nodeModulesPath],
6767
// Disable autoprefixer in css-loader itself:
6868
// https://github.com/webpack/css-loader/issues/281
6969
// We already have it thanks to postcss.

0 commit comments

Comments
 (0)