Skip to content

Commit

Permalink
Added a reasonable config for autoprefixer (resolves #73) (#345)
Browse files Browse the repository at this point in the history
* Added a reasonable config for autoprefixer (resolves #73)

* Moved autoprefixer config to webpack.config
  • Loading branch information
kripod authored and gaearon committed Aug 4, 2016
1 parent a829ca3 commit 156a3c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion config/webpack.config.dev.js
Expand Up @@ -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({
Expand Down
11 changes: 10 additions & 1 deletion config/webpack.config.prod.js
Expand Up @@ -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({
Expand Down

0 comments on commit 156a3c6

Please sign in to comment.