Skip to content

Commit

Permalink
ci(travis): Add bundle size test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed May 16, 2019
1 parent 9302d76 commit 3c8b86a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- npm run test
- npm run validate:ts

- node_js: lts/*
env: bundle size
script:
- npm run build
- npx terser pkg/dist-web/index.bundled.js --output pkg/dist-web/index.bundled.min.js --compress --mangle
- npx bundlesize --files pkg/dist-web/index.bundled.min.js --max-size 1KB
- stage: release
node_js: lts/*
env: semantic-release
Expand Down

0 comments on commit 3c8b86a

Please # to comment.