diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml index ce2746f881..fc6184870c 100644 --- a/.github/workflows/compressed-size.yml +++ b/.github/workflows/compressed-size.yml @@ -15,4 +15,4 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" pattern: "./dist/**/*.min.{js,css}" - build-script: "dist" + build-script: "dist:esbuild" diff --git a/package.json b/package.json index 3a3f9e951a..7ea215aed9 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "deploy": "bisheng gh-pages --push-only --dotfiles", "deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages", "dist": "antd-tools run dist", + "dist:esbuild": "ESBUILD=true npm run dist", "lint": "npm run tsc && npm run lint:script && npm run lint:demo && npm run lint:style && npm run lint:deps && npm run lint:md", "lint-fix": "npm run lint-fix:script && npm run lint-fix:demo && npm run lint-fix:style", "lint-fix:demo": "eslint-tinker ./components/*/demo/*.md",