Adding npm scripts
In this lesson, we will finally get to run our project after implementing a couple of npm scripts.
We'll cover the following...
We'll cover the following...
Adding the scripts
We are going to leverage npm scripts to start our app in development mode and build a production version of our app. Let’s add a scripts
section to package.json
with the following scripts:
...,
"scripts": {
"start": "webpack serve --open --mode development",
"build": "webpack --mode production"
},
...
Running the app in development mode
Let’s run ...