I need to BUILD my app using ng build --prod
on machine #1 and to SERVE my app using ng serve --prod
on machine #2
Machine #2 should NOT have the source files and has not the processing/RAM capacity to bundle them anyway.
I can't find a way to serve the already bundled files.
Any idea ?
You could simply install a node Web Server on machine #2
npm install http-server -g
cd dist
http-server
At https://www.npmjs.com/package/http-server you'll find more information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With