Skip to content

Commit

Permalink
Merge pull request #10 from Jonghakseo/add-source-map
Browse files Browse the repository at this point in the history
Add source map build config
  • Loading branch information
Jonghakseo authored Jun 26, 2022
2 parents ecb1834 + a610972 commit 558e1a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"env": {
"__DEV__": "true"
},
"watch": [
"src", "utils", "vite.config.ts"
],
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default defineConfig({
publicDir,
build: {
outDir,
sourcemap: process.env.__DEV__ === "true",
rollupOptions: {
input: {
devtools: resolve(pagesDir, "devtools", "index.html"),
Expand Down

0 comments on commit 558e1a7

Please sign in to comment.