Skip to content

Commit

Permalink
Add autofixer defaults. (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda committed Aug 5, 2016
1 parent b184ff7 commit 385942f
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 385942f

Please sign in to comment.