Fix -ms- prefix via setting autoprefix browsers

util ant-tool/atool-build#129 landed
This commit is contained in:
afc163 2016-03-30 23:28:23 +08:00
parent f13e40b887
commit 9e0273a250
2 changed files with 9 additions and 1 deletions

View File

@ -72,7 +72,7 @@
"devDependencies": {
"antd-md-loader": "0.1.0-beta.15",
"atool-build": "^0.5.0",
"autoprefixer": "^6.3.3",
"autoprefixer": "^6.3.5",
"babel-cli": "^6.2.0",
"babel-core": "^6.2.1",
"babel-eslint": "^6.0.0-beta.6",

View File

@ -1,3 +1,5 @@
var autoprefixer = require('autoprefixer');
module.exports = function(webpackConfig) {
if (process.env.ANTD === 'WEBSITE') {
webpackConfig.entry = {
@ -32,5 +34,11 @@ module.exports = function(webpackConfig) {
webpackConfig.output.libraryTarget = 'umd';
}
webpackConfig.postcss = [
autoprefixer({
browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 8']
})
];
return webpackConfig;
};