Skip to content

Commit 23da10d

Browse files
authored
ci: Try adding compressed-size-action for build stats (#1328)
* ci: Try adding compressed-size-action for build stats * ci: Bump change threshold * ci: Remove HTML, correct hash regex * ci: Add some excluded assets & improve upon output names * ci: Simplify, compressed-size will build too * ci: Fix exclusion pattern & strip-hash regex * ci: Vite hashes can include any sort of character? * chore: Switch back to standard vite & correct xmldom chunk pattern
1 parent 62f8cd8 commit 23da10d

5 files changed

Lines changed: 712 additions & 476 deletions

File tree

.github/size-plugin.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ jobs:
2020
node-version-file: 'package.json'
2121
cache: 'npm'
2222
cache-dependency-path: '**/package-lock.json'
23-
- run: npm ci
24-
- run: npm run build
23+
24+
- uses: preactjs/compressed-size-action@v2
25+
with:
26+
pattern: 'build/**/*.{js,css}'
27+
exclude: 'build/assets/{prerender,xmldom,release,repos}-*.js'
28+
strip-hash: '-(.{8})\.'
29+
minimum-change-threshold: 100

0 commit comments

Comments
 (0)