From 5365d4bbd35ce1a4a1a064c0e548aed8d2253425 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Thu, 28 Apr 2016 11:14:01 +0800 Subject: [PATCH] add warning --- index.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c37d851e65..ab328b01e3 100644 --- a/index.js +++ b/index.js @@ -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; diff --git a/package.json b/package.json index 040b8e5350..9f51965368 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "bugs": { "url": "https://github.com/ant-design/ant-design/issues" }, - "main": "lib/index", + "main": "dist/antd", "files": [ "dist", "lib",