From 156a3c6cf176e8ec18e17446d9cc93a5ce82d472 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 89ada953ea7..ba6c1926c71 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -98,7 +98,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 a84e936c260..a4e52d76574 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -108,7 +108,16 @@ module.exports = { useEslintrc: false }, postcss: function() { - return [autoprefixer]; + return [ + autoprefixer({ + browsers: [ + '>1%', + 'last 4 versions', + 'Firefox ESR', + 'not ie < 9', + ] + }), + ]; }, plugins: [ new HtmlWebpackPlugin({