Skip to content

Instantly share code, notes, and snippets.

@ShinyChang
Created February 19, 2019 15:18
Show Gist options
  • Save ShinyChang/793c5f1eac61be5484417526eb911f2b to your computer and use it in GitHub Desktop.
Save ShinyChang/793c5f1eac61be5484417526eb911f2b to your computer and use it in GitHub Desktop.
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