From f4cf20b94ff5aed6f3eea2f2ea4174db37a2c3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Tue, 10 Jan 2017 12:22:01 -0500 Subject: [PATCH] Respect autoprefixer browsers when stripping vendor prefixes with cssnano --- assets/build/webpack.config.optimize.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/build/webpack.config.optimize.js b/assets/build/webpack.config.optimize.js index 5de272070d..d77c389500 100644 --- a/assets/build/webpack.config.optimize.js +++ b/assets/build/webpack.config.optimize.js @@ -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({