Respect autoprefixer browsers when stripping vendor prefixes with cssnano

This commit is contained in:
Oskar Schöldström
2017-01-10 12:22:01 -05:00
parent 6b37080b13
commit f4cf20b94f

View File

@@ -11,7 +11,10 @@ module.exports = {
plugins: [
new OptimizeCssAssetsPlugin({
cssProcessor: cssnano,
cssProcessorOptions: { discardComments: { removeAll: true } },
cssProcessorOptions: {
discardComments: { removeAll: true },
autoprefixer: { browsers: config.browsers },
},
canPrint: true,
}),
new ImageminPlugin({