January 2019
Intermediate to advanced
272 pages
7h 40m
English
In this appendix, you’ll learn how to get the production build of the Hacker News application running locally.
The Hacker News application has two build pipelines—production and development. The two different build pipelines exist because you want to produce different files depending on whether you’re developing or serving the app over HTTP.
The development build creates JavaScript files with source maps and hot module replacement. You can run the development build on a dev server by using the serve npm script as follows:
npm run serve
Hot module replacement updates modules in the browser without losing state when you make changes to the code. ...
Read now
Unlock full access