0

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?

opticyclic
  • 7,412
  • 12
  • 81
  • 155

1 Answers1

0

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

You should not, but you can.

mikeb
  • 10,578
  • 7
  • 62
  • 120