Skip to content
Permalink
Browse files

fix settings

  • Loading branch information...
SebastienGllmt committed Jun 16, 2019
1 parent b1c9ee6 commit 0c70abb73813d3869018b348349ec08722872719
Showing with 32 additions and 4 deletions.
  1. +32 −4 webpack/commonConfig.js
@@ -52,11 +52,21 @@ const rules = [
test: /\.css$/,
use: [
'style-loader',
'css-loader?modules&sourceMap&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]',
{
loader: 'css-loader',
options: {
importLoaders: 1,
sourceMap: true,
modules: {
mode: 'local',
localIdentName: '[name]__[local]___[hash:base64:5]',
}
},
},
{
loader: 'postcss-loader',
options: {
plugins: () => [autoprefixer]
plugins: () => [autoprefixer],
}
}
]
@@ -65,15 +75,33 @@ const rules = [
test: /\.global\.scss$/,
use: [
'style-loader?sourceMap',
'css-loader?sourceMap',
{
loader: 'css-loader',
options: {
sourceMap: true,
modules: {
mode: 'global',
},
},
},
'sass-loader?sourceMap'
]
},
{
test: /^((?!\.global).)*\.scss$/,
use: [
'style-loader?sourceMap',
'css-loader?sourceMap&modules&localIdentName=[name]_[local]&importLoaders=1',
{
loader: 'css-loader',
options: {
importLoaders: 1,
sourceMap: true,
modules: {
mode: 'local',
localIdentName: '[name]__[local]___[hash:base64:5]',
}
},
},
'sass-loader?sourceMap'
]
},

0 comments on commit 0c70abb

Please sign in to comment.
You can’t perform that action at this time.