mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
Merge branch 'develop-1.0.0' of github.com:ant-design/ant-design into develop-1.0.0
This commit is contained in:
commit
fe92cd79a7
@ -28,7 +28,6 @@
|
||||
"main": "lib/index",
|
||||
"files": [
|
||||
"dist",
|
||||
"!dist/common.js",
|
||||
"lib",
|
||||
"style"
|
||||
],
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user