Skip to content

Commit

Permalink
remove sourcemap ref from prod build file
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-mitra committed Nov 13, 2020
1 parent 4e0c185 commit 1abfac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildspec.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ phases:
- npm install --unsafe-perm
- npm run prodTest && npm test
- npm run buildProdBrowser
- sed 's|rudder-analytics.min.js.map|https://cdn.rudderlabs.com/rudder-analytics.min.js.map|' dist/rudder-analytics.min.js > dist/prod.js
- 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/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
- aws s3 cp dist/rudder-analytics.min.js s3://$S3_BUCKET_NAME/v1/rudder-analytics.min.js --cache-control max-age=3600 --acl public-read
Expand Down

0 comments on commit 1abfac9

Please sign in to comment.