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 22, 2016
1 parent 8659e55 commit e9f1e67
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 @@ -97,7 +97,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 @@ -107,7 +107,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 e9f1e67

Please sign in to comment.