diff --git a/.github/workflows/size-compare.yml b/.github/workflows/size-compare.yml index 40da2aad617..dc33682c2a6 100644 --- a/.github/workflows/size-compare.yml +++ b/.github/workflows/size-compare.yml @@ -65,7 +65,9 @@ jobs: - name: Strip content hashes from stats files run: | sed -i -E 's/\.[0-9a-f]{8,}\././g' ./head/*.json + sed -i -E 's/\.[0-9a-zA-Z_-]{8,}\.chunk\././g' ./head/web-stats.json sed -i -E 's/\.[0-9a-f]{8,}\././g' ./base/*.json + sed -i -E 's/\.[0-9a-zA-Z_-]{8,}\.chunk\././g' ./base/web-stats.json - uses: twk3/rollup-size-compare-action@v1.0.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/desktop-client/vite.config.mts b/packages/desktop-client/vite.config.mts index abcea479e28..d1883dd0975 100644 --- a/packages/desktop-client/vite.config.mts +++ b/packages/desktop-client/vite.config.mts @@ -124,8 +124,8 @@ export default defineConfig(async ({ mode }) => { } return `static/${extType}/[name].[hash][extname]`; }, - chunkFileNames: 'static/js/[name].[hash].js', - entryFileNames: 'static/js/[name].[hash].js', + chunkFileNames: 'static/js/[name].[hash].chunk.js', + entryFileNames: 'static/js/[name].[hash].chunk.js', }, }, },