fix: 3.0的css-minimizer-webpack-plugin不提供sourcemap配置

This commit is contained in:
harrywan 2021-05-31 20:13:25 +08:00
parent 6b8852afec
commit 2dd7207abf

View File

@ -102,9 +102,7 @@ export default function createCssWebpackConfig({
if (!isDev) {
webpackConfig.optimization
.minimizer('css')
.use(require.resolve('css-minimizer-webpack-plugin'), [{
sourceMap: config.devtool !== false
}]);
.use(require.resolve('css-minimizer-webpack-plugin'), [{}]);
}
return (options) => {