diff --git a/build/config.js b/build/config.js index 8b7fb421..086f6429 100644 --- a/build/config.js +++ b/build/config.js @@ -5,7 +5,8 @@ module.exports = cwd => { path: `${cwd}/dev`, devtool: 'cheap-module-eval-source-map', css: { - extract: false + extract: false, + minimize: false } }, 'build': { @@ -13,7 +14,10 @@ module.exports = cwd => { path: `${cwd}/dist`, devtool: 'source-map', css: { - extract: true + extract: true, + minimize: { + mergeRules: false + } } }, 'build:dev': { @@ -21,7 +25,10 @@ module.exports = cwd => { path: `${cwd}/dev`, devtool: 'source-map', css: { - extract: true + extract: true, + minimize: { + mergeRules: false + } } }, 'build:proto': { @@ -29,7 +36,10 @@ module.exports = cwd => { path: `${cwd}/proto`, devtool: 'source-map', css: { - extract: true + extract: true, + minimize: { + mergeRules: false + } } } } diff --git a/build/webpack.base.config.js b/build/webpack.base.config.js index fbec3a41..569ceced 100644 --- a/build/webpack.base.config.js +++ b/build/webpack.base.config.js @@ -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 }