Added a reasonable config for autoprefixer (resolves #73) (#345)

* Added a reasonable config for autoprefixer (resolves #73)

* Moved autoprefixer config to webpack.config
This commit is contained in:
Kristóf Poduszló
2016-08-04 16:32:47 +02:00
committed by Dan Abramov
parent a829ca397f
commit 156a3c6cf1
2 changed files with 20 additions and 2 deletions

View File

@@ -98,7 +98,16 @@ module.exports = {
useEslintrc: false
},
postcss: function() {
return [autoprefixer];
return [
autoprefixer({
browsers: [
'>1%',
'last 4 versions',
'Firefox ESR',
'not ie < 9',
]
}),
];
},
plugins: [
new HtmlWebpackPlugin({

View File

@@ -108,7 +108,16 @@ module.exports = {
useEslintrc: false
},
postcss: function() {
return [autoprefixer];
return [
autoprefixer({
browsers: [
'>1%',
'last 4 versions',
'Firefox ESR',
'not ie < 9',
]
}),
];
},
plugins: [
new HtmlWebpackPlugin({