A-A+

Warning: It looks like you’re using a minified copy of the development build of React.

2016年11月18日 webpack 暂无评论 阅读 1,446 次
Warning: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.

在Webpack的plugins里添加:

new webpack.DefinePlugin({
  "process.env": { 
     NODE_ENV: JSON.stringify("production") 
   }
})

然后就没问题了==

ps:https://segmentfault.com/a/1190000005110967

标签:

给我留言

Copyright © web前端技术开发个人博客 保留所有权利  京ICP备14060653号 Theme  Ality

用户登录