August 2017
Beginner
374 pages
10h 41m
English
We will now add new package.json scripts for the production environment. To set environment variables, we will use the cross-env tool, which makes setting environment variables easier across various platforms. In production mode, we will serve the static .html and .js files through a simple web server. In this example, we will use the serve tool.
Let's get started adding build scripts:
npm install --save cross-env serve shx
"scripts": { "start": "npm run build:app && serve ...Read now
Unlock full access