Skip to content

Commit

Permalink
Add autofixer defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda committed Aug 5, 2016
1 parent b184ff7 commit fda3c36
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
11 changes: 10 additions & 1 deletion src/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit fda3c36

Please sign in to comment.