add warning

This commit is contained in:
yiminghe 2016-04-28 11:14:01 +08:00
parent 196090cf4b
commit 5365d4bbd3
2 changed files with 4 additions and 1 deletions

View File

@ -17,4 +17,7 @@ const antd = {
Card, LocaleProvider, Transfer, Cascader,
};
console.warn(`you are using prebuild antd,
please use https://github.com/ant-design/babel-plugin-antd to reduce app bundle size.`);
export default antd;

View File

@ -25,7 +25,7 @@
"bugs": {
"url": "https://github.com/ant-design/ant-design/issues"
},
"main": "lib/index",
"main": "dist/antd",
"files": [
"dist",
"lib",