From e9f1e67194182cf037648208158fb9a8f7cf8b85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= Date: Thu, 4 Aug 2016 16:32:47 +0200 Subject: [PATCH] Added a reasonable config for autoprefixer (resolves #73) (#345) * Added a reasonable config for autoprefixer (resolves #73) * Moved autoprefixer config to webpack.config --- config/webpack.config.dev.js | 11 ++++++++++- config/webpack.config.prod.js | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 93589a99006..f87fc2c4529 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -97,7 +97,16 @@ module.exports = { useEslintrc: false }, postcss: function() { - return [autoprefixer]; + return [ + autoprefixer({ + browsers: [ + '>1%', + 'last 4 versions', + 'Firefox ESR', + 'not ie < 9', + ] + }), + ]; }, plugins: [ new HtmlWebpackPlugin({ diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index bc1887df177..d7f3ada7c4f 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -107,7 +107,16 @@ module.exports = { useEslintrc: false }, postcss: function() { - return [autoprefixer]; + return [ + autoprefixer({ + browsers: [ + '>1%', + 'last 4 versions', + 'Firefox ESR', + 'not ie < 9', + ] + }), + ]; }, plugins: [ new HtmlWebpackPlugin({