Remove duplicate frontend assets from wheel to reduce package size (#4567)
The wheel currently ships frontend/public/, frontend/src/, and frontend/*.lock alongside frontend/dist/. These are build-time inputs that Vite already copies into dist/ during the build step: - public/ is copied verbatim into dist/ by vite build (28.6 MB duplicate) - src/ is TSX source compiled into dist/assets/*.js (2.1 MB, not used at runtime) - *.lock files are package manager lockfiles (0.9 MB, not used at runtime) The backend only serves from frontend/dist/ (see main.py setup_frontend and run.py frontend_path). Nothing references public/ or src/ at runtime. This drops the wheel from ~62.7 MB to ~31 MB.
This commit is contained in:
parent
557743f027
commit
3108750bb0
1 changed files with 0 additions and 3 deletions
|
|
@ -46,12 +46,9 @@ studio = [
|
|||
"*.ps1",
|
||||
"*.bat",
|
||||
"frontend/dist/**/*",
|
||||
"frontend/public/**/*",
|
||||
"frontend/src/**/*",
|
||||
"frontend/*.json",
|
||||
"frontend/*.ts",
|
||||
"frontend/*.js",
|
||||
"frontend/*.lock",
|
||||
"frontend/*.html",
|
||||
"frontend/*.yaml",
|
||||
"frontend/.git*",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue