From 32a2040bcdb16deac216bd5e0eb6b1712f45bf7d Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 19 Mar 2021 13:56:02 +0800 Subject: [PATCH] chore: size-check --- .github/workflows/size-check.yml | 5 ++++- packages/size-check/vite.config.ts | 14 +++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/size-check.yml b/.github/workflows/size-check.yml index 3842e3c1a9..9d353c7b42 100644 --- a/.github/workflows/size-check.yml +++ b/.github/workflows/size-check.yml @@ -13,6 +13,9 @@ jobs: CI_JOB_NUMBER: 1 steps: - uses: actions/checkout@v1 - - uses: andresz1/size-limit-action@v1 + - uses: bahmutov/npm-install@v1 + - uses: fxy060608/size-check-action@v1.1.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} + build_script: build + files: packages/size-check/dist/assets/index.js packages/size-check/dist/assets/index.css packages/uni-h5-vue/dist/vue.runtime.esm.js packages/uni-mp-vue/dist/vue.runtime.esm.js packages/uni-mp-alipay/dist/uni.api.esm.js packages/uni-mp-alipay/dist/uni.mp.esm.js packages/uni-mp-baidu/dist/uni.api.esm.js packages/uni-mp-baidu/dist/uni.mp.esm.js packages/uni-mp-qq/dist/uni.api.esm.js packages/uni-mp-qq/dist/uni.mp.esm.js packages/uni-mp-toutiao/dist/uni.api.esm.js packages/uni-mp-toutiao/dist/uni.mp.esm.js packages/uni-mp-weixin/dist/uni.api.esm.js packages/uni-mp-weixin/dist/uni.mp.esm.js packages/uni-quickapp-webview/dist/uni.api.esm.js packages/uni-quickapp-webview/dist/uni.mp.esm.js diff --git a/packages/size-check/vite.config.ts b/packages/size-check/vite.config.ts index e7c0d68496..b6ea3f2d5c 100644 --- a/packages/size-check/vite.config.ts +++ b/packages/size-check/vite.config.ts @@ -13,13 +13,13 @@ export default { root: __dirname, build: { // minify: false, - // rollupOptions: { - // output: { - // entryFileNames: `assets/[name].js`, - // chunkFileNames: `assets/[name].js`, - // assetFileNames: `assets/[name].[ext]`, - // }, - // }, + rollupOptions: { + output: { + entryFileNames: `assets/[name].js`, + chunkFileNames: `assets/[name].js`, + assetFileNames: `assets/[name].[ext]`, + }, + }, }, plugins: [ -- GitLab