Build Scripts

Let’s learn how to add the build script in our project's package.json file.

NPM scripts

To make it easier to build our application for both development and production use, we can add build instructions to the npm package.json file. We’ll usually want to specify different build options depending on which environment we are building for. For example, while it is nice to have a readable, non-minified generated JavaScript code and have sourcemaps available for debugging purposes, we would usually not want to do this for ...