Last active
October 25, 2016 08:47
-
-
Save fxmontigny/07a2ba840c781fe0f4e205cf2454360d to your computer and use it in GitHub Desktop.
[SHELL] How make prod env with angular-cli
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
#!/bin/bash | |
npm install | |
ng build -prod | |
cp src/.htaccess dist/ | |
find dist/assets -type f \( -name '*.js' -o -name '*.css' \) -exec gzip -k -f "{}" \; #every js and css files you cannot add to angular-cli.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment