简体   繁体   English

在开发模式下部署React

[英]Deploying react in development mode

I am working on a project where the schedule forces us to deploy our react app to serve it to the client as fast as possible. 我正在一个项目中,进度表迫使我们部署React应用程序以尽快将其提供给客户。

Our production configuration is not ready yet, which makes me wonder whether deploying it in development mode to production has any associated security risks? 我们的生产配置尚未准备就绪,这使我想知道以开发模式将其部署到生产中是否存在任何相关的安全风险? Or is there just a performance difference? 还是仅存在性能差异?

Thanks :) 谢谢 :)

If you are deploying an app in development mode your bundle will be heavier (because there is no minification and your bundle.js.map ). 如果您以开发模式部署应用程序,则捆绑包会更重(因为没有缩小效果,而您的bundle.js.map )。 React and some other packages are relying on process.env.NODE_ENV to throw error or warning. React和其他一些软件包依赖process.env.NODE_ENV引发错误或警告。 Your console will propably print a lot of things slowing down (a bit) your application. 您的控制台可能会打印很多事情,从而使您的应用程序变慢(有点)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM