Skip to content

Commit

Permalink
Resolve imported CSS files from node_modules (#105)
Browse files Browse the repository at this point in the history
* Resolve imported CSS files from anywhere
* Resolve imported CSS files from src and node_modules folder only

Closes #103
  • Loading branch information
glennreyes authored and mxstbr committed Jul 23, 2016
1 parent 3ac4035 commit a35ac92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = {
},
{
test: /\.css$/,
include: srcPath,
include: [srcPath, nodeModulesPath],
loader: 'style!css!postcss'
},
{
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a35ac92

Please sign in to comment.