Last active
August 10, 2017 17:17
-
-
Save davideast/d4b77f3e47bf847c455f7144bef357d9 to your computer and use it in GitHub Desktop.
Angular Universal + TS server build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build the browser bundle | |
ng build --prod | |
# Build the universal bundle | |
ng build --prod --app 1 | |
# Move the browser index.html to generate the SSR version | |
mv dist/index.html dist-server/ | |
# Treat dist as static within dist-server | |
mv dist/ dist-server/static | |
# Transpile TS server code | |
node_modules/.bin/tsc -p server/tsconfig.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment