Skip to content

Commit

Permalink
Add sourcemap to local config for better build debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Jul 18, 2024
1 parent 32403e4 commit 1fa6661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"start": "vite --config ./vite/vite.local.config.mts",
"dev": "npm run watcher & npm run start",
"deploy": "vite --config ./vite/vite.config.mts",
"build-local": "tsc && vite build --config ./vite/vite.local.config.mts",
"build-local": "tsc && NODE_OPTIONS=--max-old-space-size=9000 vite build --config ./vite/vite.local.config.mts",
"build-dev": "tsc && vite build --config ./vite/vite.dev.config.mts",
"build": "tsc && vite build --config ./vite/vite.config.mts",
"watcher": "node ./scripts/watcher.js",
Expand Down
3 changes: 2 additions & 1 deletion vite/vite.local.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default defineConfig({
envCompatible(),
],
build: {
sourcemap: true,
outDir: 'dist',
manifest: true,
rollupOptions: {
Expand All @@ -40,6 +41,6 @@ export default defineConfig({
},
preview: {
port: 8113,
open: false,
open: true,
},
});

0 comments on commit 1fa6661

Please sign in to comment.