1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2025-02-18 13:29:36 +01:00

ci: structured build output from size-limit (#6788)

* ci: better build output from size-limit

* add size-limit.json

* try with pull request target

* fix

* revert pull request target
This commit is contained in:
Aakansha Doshi 2023-07-20 13:54:13 +05:30 committed by GitHub
parent 70888327a3
commit 5e3550fc14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 9 deletions

@ -0,0 +1,16 @@
[
{
"path": "dist/excalidraw.production.min.js",
"limit": "285 kB"
},
{
"path": "dist/excalidraw-assets/locales",
"name": "dist/excalidraw-assets/locales",
"limit": "270 kB"
},
{
"path": "dist/excalidraw-assets/vendor-*.js",
"name": "dist/excalidraw-assets/vendor*.js",
"limit": "30 kB"
}
]

@ -82,13 +82,5 @@
"install:deps": "yarn install --frozen-lockfile && yarn --cwd ../../../",
"build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js && yarn gen:types",
"size": "yarn build:umd && size-limit"
},
"size-limit": [
{
"path": "dist/excalidraw.development.js"
},
{
"path": "dist/excalidraw.production.min.js"
}
]
}
}