Skip to content

Instantly share code, notes, and snippets.

@rynop
Created November 30, 2018 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rynop/17394ad1cd03ad8ae181dc5a1855d5cb to your computer and use it in GitHub Desktop.
Save rynop/17394ad1cd03ad8ae181dc5a1855d5cb to your computer and use it in GitHub Desktop.
build and deploy angular app to s3 for CloudFront
"scripts": {
...
"build:prod": "ng build --stats-json --prod --build-optimizer --delete-output-path --aot --output-path=dist",
"deploy:prod": "yarn run build:prod && gzip-all \"dist/*.{css,js,html}\" && dev-bin/deploy.sh us-east-1--prod--master--www.rynop.com"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment