mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Fix -ms- prefix via setting autoprefix browsers
util ant-tool/atool-build#129 landed
This commit is contained in:
parent
f13e40b887
commit
9e0273a250
@ -72,7 +72,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"antd-md-loader": "0.1.0-beta.15",
|
"antd-md-loader": "0.1.0-beta.15",
|
||||||
"atool-build": "^0.5.0",
|
"atool-build": "^0.5.0",
|
||||||
"autoprefixer": "^6.3.3",
|
"autoprefixer": "^6.3.5",
|
||||||
"babel-cli": "^6.2.0",
|
"babel-cli": "^6.2.0",
|
||||||
"babel-core": "^6.2.1",
|
"babel-core": "^6.2.1",
|
||||||
"babel-eslint": "^6.0.0-beta.6",
|
"babel-eslint": "^6.0.0-beta.6",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
var autoprefixer = require('autoprefixer');
|
||||||
|
|
||||||
module.exports = function(webpackConfig) {
|
module.exports = function(webpackConfig) {
|
||||||
if (process.env.ANTD === 'WEBSITE') {
|
if (process.env.ANTD === 'WEBSITE') {
|
||||||
webpackConfig.entry = {
|
webpackConfig.entry = {
|
||||||
@ -32,5 +34,11 @@ module.exports = function(webpackConfig) {
|
|||||||
webpackConfig.output.libraryTarget = 'umd';
|
webpackConfig.output.libraryTarget = 'umd';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
webpackConfig.postcss = [
|
||||||
|
autoprefixer({
|
||||||
|
browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 8']
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
return webpackConfig;
|
return webpackConfig;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user