December 2019
Intermediate to advanced
474 pages
10h 3m
English
While working in development mode, every time we make changes to the files in our application, we need to rerun the npm start command. Since this is a bit tedious, we will install another package called webpack-dev-server. This package adds the option to force webpack to restart every time we make changes to our project files and manages our application files in memory instead of by building the dist directory. The webpack-dev-server package can also be installed with npm:
npm install --save-dev webpack-dev-server
Also, we need to edit the start script in the package.json file so that it uses webpack-dev-server instead of webpack directly when running the start script:
{ "name": "movieList", "version": "1.0.0", ...Read now
Unlock full access