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

@ckinmind 2017-01-08 05:21:36发表于 ckinmind/ReactCollect webpack

执行webpack -p 打包压缩了js代码之后,在浏览器其运行时,提示了这个警告:

bundle.js:1 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.e

警告的意思是:引入的React没有切换到产品版本

参考资料:webpack + react 优化:缩小js包体积