Use advanced preset for cssnano.

header/meta/overlay^2
Icedream 2018-07-23 00:02:24 +02:00
parent fb63356f10
commit fdc20e72a2
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 1 additions and 1 deletions

View File

@ -385,9 +385,9 @@ export default (options, { mode }) => {
sourceMap: true, sourceMap: true,
}), }),
new OptimizeCssAssetsPlugin({ new OptimizeCssAssetsPlugin({
assetNameRegExp: /\.css$/gi,
cssProcessor: cssnano, cssProcessor: cssnano,
cssProcessorOptions: { cssProcessorOptions: {
preset: 'advanced',
parser: postcssSafeParser, parser: postcssSafeParser,
discardComments: { removeAll: true }, discardComments: { removeAll: true },
}, },