Merge branch 'develop-1.0.0' of github.com:ant-design/ant-design into develop-1.0.0

This commit is contained in:
afc163 2016-04-10 13:12:21 +08:00
commit fe92cd79a7
2 changed files with 5 additions and 6 deletions

View File

@ -28,7 +28,6 @@
"main": "lib/index",
"files": [
"dist",
"!dist/common.js",
"lib",
"style"
],

View File

@ -1,6 +1,11 @@
const webpack = require('atool-build/lib/webpack');
module.exports = function(webpackConfig) {
// remove common.js
webpackConfig.plugins = webpackConfig.plugins.filter((plugin) => {
return !(plugin instanceof webpack.optimize.CommonsChunkPlugin);
});
if (process.env.ANTD === 'WEBSITE') {
const component = process.env.COMPONENT_STYLE;
@ -76,10 +81,5 @@ module.exports = function(webpackConfig) {
];
}
// remove common.js
if (webpackConfig.plugins[0].chunkNames === 'common') {
webpackConfig.plugins.shift();
}
return webpackConfig;
};