From fda3c369b65cd89d86fa71b27589c8be132d6582 Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Fri, 5 Aug 2016 14:06:21 +0530 Subject: [PATCH] Add autofixer defaults. See: https://github.com/facebookincubator/create-react-app/pull/345 --- dist/server/config/defaults/webpack.config.js | 4 +++- src/server/config/defaults/webpack.config.js | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dist/server/config/defaults/webpack.config.js b/dist/server/config/defaults/webpack.config.js index 0f62f8ece2cb..336f46ade78c 100644 --- a/dist/server/config/defaults/webpack.config.js +++ b/dist/server/config/defaults/webpack.config.js @@ -41,7 +41,9 @@ module.exports = function (storybookBaseConfig) { }]); newConfig.postcss = function () { - return [_autoprefixer2.default]; + return [(0, _autoprefixer2.default)({ + browsers: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9'] + })]; }; newConfig.resolve = { diff --git a/src/server/config/defaults/webpack.config.js b/src/server/config/defaults/webpack.config.js index 7305f7bc704d..6d144c77311a 100644 --- a/src/server/config/defaults/webpack.config.js +++ b/src/server/config/defaults/webpack.config.js @@ -40,7 +40,16 @@ module.exports = (storybookBaseConfig) => { ]; newConfig.postcss = () => { - return [autoprefixer]; + return [ + autoprefixer({ + browsers: [ + '>1%', + 'last 4 versions', + 'Firefox ESR', + 'not ie < 9', + ], + }), + ]; }; newConfig.resolve = {