Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 156a3c6

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 a829ca3 commit 156a3c6

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

config/webpack.config.dev.js

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

config/webpack.config.prod.js

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

0 commit comments

Comments
 (0)