Skip to content

Commit

Permalink
Added support for dev build as well
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Aug 26, 2021
1 parent 7d37fd1 commit b2bbe6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildspec.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ phases:
- npm install --unsafe-perm
- npm run prodTest && npm test
- npm run buildProdBrowser
- npm run buildDevBrowser
- sed 's|//# sourceMappingURL=rudder-analytics.min.js.map||' dist/rudder-analytics.min.js > dist/prod.js
- mv dist/prod.js dist/rudder-analytics.min.js
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/v3/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
- aws s3 cp dist/rudder-analytics.js s3://$S3_BUCKET_NAME/v3/rudder-analytics.js --cache-control max-age=3600 --acl public-read
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v3/rudder-analytics.min.js"
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/v3/rudder-analytics.js"
artifacts:
files:
- "**/*"

0 comments on commit b2bbe6c

Please sign in to comment.