Browse Source

chore: 替换 bundlesize 为 size-limit (#36712)

* chore: 替换 bundlesize 为 size-limit

* 恢复 bundlesize
pull/36718/head 4.22.0
lihao 2 years ago
committed by GitHub
parent
commit
926aa0d929
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      package.json

25
package.json

@ -51,6 +51,7 @@
"authors": "node ./scripts/generate-authors", "authors": "node ./scripts/generate-authors",
"build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist", "build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
"bundlesize": "bundlesize", "bundlesize": "bundlesize",
"size-limit": "size-limit",
"check-commit": "node ./scripts/check-commit", "check-commit": "node ./scripts/check-commit",
"check-ts-demo": "node ./scripts/check-ts-demo", "check-ts-demo": "node ./scripts/check-ts-demo",
"clean": "antd-tools run clean && rm -rf es lib coverage dist report.html", "clean": "antd-tools run clean && rm -rf es lib coverage dist report.html",
@ -164,6 +165,7 @@
"@ant-design/tools": "^15.0.4", "@ant-design/tools": "^15.0.4",
"@docsearch/css": "^3.0.0", "@docsearch/css": "^3.0.0",
"@qixian.cs/github-contributors-list": "^1.0.3", "@qixian.cs/github-contributors-list": "^1.0.3",
"@size-limit/file": "^7.0.8",
"@stackblitz/sdk": "^1.3.0", "@stackblitz/sdk": "^1.3.0",
"@testing-library/jest-dom": "^5.16.3", "@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.0.0", "@testing-library/react": "^12.0.0",
@ -282,6 +284,7 @@
"scrollama": "^3.0.0", "scrollama": "^3.0.0",
"semver": "^7.3.5", "semver": "^7.3.5",
"simple-git": "^3.0.0", "simple-git": "^3.0.0",
"size-limit": "^7.0.8",
"stylelint": "^14.9.0", "stylelint": "^14.9.0",
"stylelint-config-prettier": "^9.0.2", "stylelint-config-prettier": "^9.0.2",
"stylelint-config-rational-order": "^0.1.2", "stylelint-config-rational-order": "^0.1.2",
@ -301,6 +304,28 @@
"publishConfig": { "publishConfig": {
"registry": "https://registry.npmjs.org/" "registry": "https://registry.npmjs.org/"
}, },
"size-limit": [
{
"path": "./dist/antd.min.js",
"limit": "282 kB"
},
{
"path": "./dist/antd.min.css",
"limit": "66 kB"
},
{
"path": "./dist/antd.dark.min.css",
"limit": "67.5 kB"
},
{
"path": "./dist/antd.compact.min.css",
"limit": "66 kB"
},
{
"path": "./dist/antd.variable.min.css",
"limit": "67 kB"
}
],
"bundlesize": [ "bundlesize": [
{ {
"path": "./dist/antd.min.js", "path": "./dist/antd.min.js",

Loading…
Cancel
Save