Skip to content

Commit 1f65919

Browse files
author
Jay Freestone
committed
ci(travis): Add bundlesize test.
1 parent 6c41c3b commit 1f65919

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
- stage: test
1010
before_script: npm run build
1111
script: npm run test:ci
12+
- before_script: npm run build
13+
script: npm run bundlesize
1214
- stage: release
1315
before_script: npm run build
1416
script: skip

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,11 @@
4242
"typescript": "^3.3.3333",
4343
"wait-on": "^3.2.0",
4444
"webpack": "^4.33.0"
45-
}
45+
},
46+
"bundlesize": [
47+
{
48+
"path": "./dist/priority-plus.*.js",
49+
"maxSize": "2.5 kB"
50+
}
51+
]
4652
}

0 commit comments

Comments
 (0)