mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-01 12:42:50 +08:00
* Added a reasonable config for autoprefixer (resolves #73) * Moved autoprefixer config to webpack.config
This commit is contained in:
committed by
Dan Abramov
parent
a829ca397f
commit
156a3c6cf1
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user