feat: Add size limit action (#7253)

* chore: update browserlist

* feat: add size limit action

* feat: set limits

* feat: add size limit in CI

* chore: remove railsenv

* chore: update limits
This commit is contained in:
Shivam Mishra
2023-06-05 18:56:15 +05:30
committed by GitHub
parent 9203b097d2
commit 9f3d155822
3 changed files with 131 additions and 12 deletions

View File

@@ -15,8 +15,19 @@
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"ruby:prettier": "bundle exec rubocop -a",
"prepare": "husky install"
"prepare": "husky install",
"size": "size-limit"
},
"size-limit": [
{
"path": "public/packs/js/widget-*.js",
"limit": "270 KB"
},
{
"path": "public/packs/js/sdk.js",
"limit": "40 KB"
}
],
"dependencies": {
"@braid/vue-formulate": "^2.5.2",
"@chatwoot/prosemirror-schema": "https://github.com/chatwoot/prosemirror-schema.git",
@@ -87,6 +98,7 @@
"@babel/core": "7.13.16",
"@babel/plugin-proposal-class-properties": "7.13.0",
"@babel/preset-env": "7.13.15",
"@size-limit/file": "^8.2.4",
"@storybook/addon-actions": "6.5.9",
"@storybook/addon-docs": "^6.5.9",
"@storybook/addon-essentials": "6.5.9",
@@ -121,6 +133,7 @@
"lint-staged": "10.5.4",
"prettier": "^1.16.4",
"rimraf": "^3.0.0",
"size-limit": "^8.2.4",
"vue-jest": "4",
"webpack-dev-server": "^3"
},