Skip to content

Instantly share code, notes, and snippets.

@fxmontigny
Last active October 25, 2016 08:47
Show Gist options
  • Save fxmontigny/07a2ba840c781fe0f4e205cf2454360d to your computer and use it in GitHub Desktop.
Save fxmontigny/07a2ba840c781fe0f4e205cf2454360d to your computer and use it in GitHub Desktop.
[SHELL] How make prod env with angular-cli
#!/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