Created
February 19, 2019 15:18
-
-
Save ShinyChang/793c5f1eac61be5484417526eb911f2b to your computer and use it in GitHub Desktop.
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: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
use: [ | |
'thread-loader', | |
'babel-loader' | |
] | |
}, | |
{ | |
test: /\.s?css$/, | |
exclude: /node_modules/, | |
use: [ | |
'style-loader', | |
'thread-loader', | |
{ | |
loader: 'css-loader', | |
options: { | |
modules: true, | |
localIdentName: '[name]__[local]--[hash:base64:5]', | |
importLoaders: 1 | |
} | |
}, | |
'postcss-loader' | |
] | |
} | |
... | |
] | |
... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment