using npm run commands for building angular application (supports pre steps).
Automatically embed the application version in the UI.
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
"license": "https://themeforest.net/licenses/standard",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"prestart": "ts-node -O '{\"module\": \"commonjs\"}' git.version.ts",
|
||||
"start": "ng serve --open",
|
||||
"start:mem": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng serve --open",
|
||||
"prebuild:prod": "ts-node -O '{\"module\": \"commonjs\"}' git.version.ts",
|
||||
"build": "ng build",
|
||||
"build:prod": "ng build --prod",
|
||||
"build:prod:mem": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --prod",
|
||||
|
||||
Reference in New Issue
Block a user