Skip to content

Commit

Permalink
check NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Apr 30, 2016
1 parent 9b4a159 commit 08f956e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ const antd = {
Card, LocaleProvider, Transfer, Cascader,
};

if (typeof console !== 'undefined' && console.warn) {
console.warn(`you are using prebuild antd,
if (process.env.NODE_ENV !== 'production') {
if (typeof console !== 'undefined' && console.warn) {
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;

0 comments on commit 08f956e

Please sign in to comment.