Skip to content

Commit e9f1e67

Browse files
kripodgaearon
authored andcommitted
Added a reasonable config for autoprefixer (resolves #73) (#345)
* Added a reasonable config for autoprefixer (resolves #73) * Moved autoprefixer config to webpack.config
1 parent 8659e55 commit e9f1e67

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

config/webpack.config.dev.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,16 @@ module.exports = {
9797
useEslintrc: false
9898
},
9999
postcss: function() {
100-
return [autoprefixer];
100+
return [
101+
autoprefixer({
102+
browsers: [
103+
'>1%',
104+
'last 4 versions',
105+
'Firefox ESR',
106+
'not ie < 9',
107+
]
108+
}),
109+
];
101110
},
102111
plugins: [
103112
new HtmlWebpackPlugin({

config/webpack.config.prod.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,16 @@ module.exports = {
107107
useEslintrc: false
108108
},
109109
postcss: function() {
110-
return [autoprefixer];
110+
return [
111+
autoprefixer({
112+
browsers: [
113+
'>1%',
114+
'last 4 versions',
115+
'Firefox ESR',
116+
'not ie < 9',
117+
]
118+
}),
119+
];
111120
},
112121
plugins: [
113122
new HtmlWebpackPlugin({

0 commit comments

Comments
 (0)