feat: add sourcemap generation for front (#4949)

This PR changes the vite config to enable the generation of sourcemaps
with the help of an Env.
It also adds a new script to run the build with the said env as well as
more memory (the dafault 2go leads to an OOM)
This commit is contained in:
Quentin G
2024-04-15 12:12:59 +02:00
committed by GitHub
parent b6d0b8a895
commit 96bd5f1803
2 changed files with 3 additions and 3 deletions

View File

@ -8,6 +8,7 @@
"start": "npx vite --host",
"start:clean": "yarn start --force",
"build": "yarn tsc && npx vite build && yarn build:inject-runtime-env",
"build:sourcemaps": "VITE_BUILD_SOURCEMAP=true NODE_OPTIONS=--max-old-space-size=3000 yarn build",
"build:inject-runtime-env": "sh ./scripts/inject-runtime-env.sh",
"tsc": "npx tsc --project tsconfig.app.json",
"tsc:ci": "yarn tsc --project tsconfig.json",