-
Notifications
You must be signed in to change notification settings - Fork 4
/
run.sh
executable file
·29 lines (22 loc) · 903 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
PATH=$PATH:$(npm bin)
set -x
# Production build
ng build --prod
# Generate a new index.html with an app shell
#./node_modules/.bin/ngu-app-shell --module src/app/app.module.ts \
# --url /loading \
# --insert-module src/app/loading/loading.module.ts \
# --out dist/index.html
# Generate a SW manifest from our app
#./node_modules/.bin/ngu-sw-manifest --module src/app/app.module.ts \
# --out dist/ngsw-manifest.json
./node_modules/.bin/ngu-sw-manifest --in src/ngsw-manifest.json \
--out dist/ngsw-manifest.json
# Copy prebuilt worker into our site
cp node_modules/@angular/service-worker/bundles/worker-basic.min.js dist/
# Copy manifest.json to dist
#cp src/manifest.json dist/
# Serve
cd dist
angular-http-server