mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
Change the vite chunk filename hash usage (#2224)
* Change the vite chunk filename hash usage - Change to more closely match the . syntax we use with webpack - This should fix some issues with our size compare as well * Account for chunks being base64
This commit is contained in:
4
.github/workflows/size-compare.yml
vendored
4
.github/workflows/size-compare.yml
vendored
@@ -64,7 +64,11 @@ jobs:
|
||||
|
||||
- name: Strip content hashes from stats files
|
||||
run: |
|
||||
sed -i -E 's/index\.[0-9a-zA-Z_-]{8,}\./index./g' ./head/web-stats.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' ./head/*.json
|
||||
sed -i -E 's/index\.[0-9a-zA-Z_-]{8,}\./index./g' ./base/web-stats.json
|
||||
sed -i -E 's/\.[0-9a-zA-Z_-]{8,}\.chunk\././g' ./base/web-stats.json
|
||||
sed -i -E 's/\.[0-9a-f]{8,}\././g' ./base/*.json
|
||||
- uses: twk3/rollup-size-compare-action@v1.0.0
|
||||
with:
|
||||
|
||||
@@ -123,10 +123,10 @@ export default defineConfig(async ({ mode }) => {
|
||||
} else if (/woff|woff2/.test(extType)) {
|
||||
extType = 'media';
|
||||
}
|
||||
return `static/${extType}/[name]-[hash][extname]`;
|
||||
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].js',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
6
upcoming-release-notes/2224.md
Normal file
6
upcoming-release-notes/2224.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Maintenance
|
||||
authors: [twk3]
|
||||
---
|
||||
|
||||
Change the vite chunk filename hash to closely match our webpack syntax
|
||||
Reference in New Issue
Block a user