Last active
February 18, 2016 08:33
-
-
Save kebot/bfa25ca51b6afa2fb71b to your computer and use it in GitHub Desktop.
Mix normal css and css-module in webpack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// ... | |
module: { | |
loaders: [{ | |
test: /\.module\.(scss|css)$/, | |
loaders: [ | |
'style-loader', 'css-loader?module', 'autoprefixer-loader', | |
'sass-loader' | |
] | |
}, { | |
test: /\.scss$/, | |
exclude: /\.module\.(scss|css)$/, | |
loaders: [ | |
'style-loader', 'css-loader', 'autoprefixer-loader', | |
'sass-loader' | |
] | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment