Skip to content

Commit

Permalink
Disable cssnano mergeRules
Browse files Browse the repository at this point in the history
* Causes problems with `@supports`
  • Loading branch information
mvsde committed Mar 30, 2018
1 parent 9b847fd commit 2cbec41
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,41 @@ module.exports = cwd => {
path: `${cwd}/dev`,
devtool: 'cheap-module-eval-source-map',
css: {
extract: false
extract: false,
minimize: false
}
},
'build': {
entry: './src/main.js',
path: `${cwd}/dist`,
devtool: 'source-map',
css: {
extract: true
extract: true,
minimize: {
mergeRules: false
}
}
},
'build:dev': {
entry: './src/main.js',
path: `${cwd}/dev`,
devtool: 'source-map',
css: {
extract: true
extract: true,
minimize: {
mergeRules: false
}
}
},
'build:proto': {
entry: './src/main.js',
path: `${cwd}/proto`,
devtool: 'source-map',
css: {
extract: true
extract: true,
minimize: {
mergeRules: false
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = cwd => {
loader: 'css-loader',
options: {
importLoaders: 2,
minimize: config.css.extract,
minimize: config.css.minimize,
sourceMap: true,
url: false
}
Expand Down

0 comments on commit 2cbec41

Please sign in to comment.