I. Overview
ng build
build application- lite-server introduction and installation
- lite-server deployment application
- IIS Manager Deployment Application
Two ng build
build the application
2.1 Execute the following instructions to build the application
ng build
2.2 After the build is complete, a dist
folder
2.3 There will be an error when opening index.html directly (requires the help of server deployment)
Three lite-server introduction and installation
3.1 Project address
https://github.com/johnpapa/lite-server
3.2 lite-server introduction
Lightweight Node server
3.3 lite-server installation
npm install --global lite-server
Four lite-server deployment applications
4.1 Execute the following command on the terminal to deploy the application
lite-server --baseDir="dist/project-name"