Skip to content

Commit fda3c36

Browse files
committed
Add autofixer defaults.
See: facebook/create-react-app#345
1 parent b184ff7 commit fda3c36

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

dist/server/config/defaults/webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ module.exports = function (storybookBaseConfig) {
4141
}]);
4242

4343
newConfig.postcss = function () {
44-
return [_autoprefixer2.default];
44+
return [(0, _autoprefixer2.default)({
45+
browsers: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9']
46+
})];
4547
};
4648

4749
newConfig.resolve = {

src/server/config/defaults/webpack.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,16 @@ module.exports = (storybookBaseConfig) => {
4040
];
4141

4242
newConfig.postcss = () => {
43-
return [autoprefixer];
43+
return [
44+
autoprefixer({
45+
browsers: [
46+
'>1%',
47+
'last 4 versions',
48+
'Firefox ESR',
49+
'not ie < 9',
50+
],
51+
}),
52+
];
4453
};
4554

4655
newConfig.resolve = {

0 commit comments

Comments
 (0)