Can You Run WebpackDevServer In The Cloud?

半世苍凉 提交于 2021-01-07 01:26:30

问题


When using a ReactJS application you run it locally with npm start.

This ends up calling react-scripts start, which uses the WebpackDevServer.

The documentation says that you shouldn't use the dev server for production.

The reasons for not running it in production are mostly security, obfuscation, minification, size etc.

However, is there any technology reason that means you can't use it on a server?

i.e. if you ignore all the issues with running the dev server, will it still actually serve the pages and be accessible from a web page?


回答1:


Sure, you can run it there - you just have to set it up.

You should not, but you can.



来源:https://stackoverflow.com/questions/65309151/can-you-run-webpackdevserver-in-the-cloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!