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:
parent
70888327a3
commit
5e3550fc14
16
src/packages/excalidraw/.size-limit.json
Normal file
16
src/packages/excalidraw/.size-limit.json
Normal file
@ -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 ../../../",
|
"install:deps": "yarn install --frozen-lockfile && yarn --cwd ../../../",
|
||||||
"build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js && yarn gen:types",
|
"build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js && yarn gen:types",
|
||||||
"size": "yarn build:umd && size-limit"
|
"size": "yarn build:umd && size-limit"
|
||||||
},
|
}
|
||||||
"size-limit": [
|
|
||||||
{
|
|
||||||
"path": "dist/excalidraw.development.js"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "dist/excalidraw.production.min.js"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user