Skip to content

Commit

Permalink
Respect autoprefixer browsers when stripping vendor prefixes with css…
Browse files Browse the repository at this point in the history
…nano
  • Loading branch information
oxyc committed Jan 10, 2017
1 parent 6b37080 commit f4cf20b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/build/webpack.config.optimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f4cf20b

Please sign in to comment.