Appendix B. Running the production build
In this appendix, you’ll learn how to get the production build of the Hacker News application running locally.
B.1 Understanding the production build
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
Definition
Hot module replacement updates modules in the browser without losing state when you make changes to the code. ...
Get Testing Vue.js Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.