From a610972a66431eb04871eb3c1e749f2a07468f30 Mon Sep 17 00:00:00 2001 From: Jonghakseo Date: Sun, 26 Jun 2022 16:37:07 +0900 Subject: [PATCH] add source map build config --- nodemon.json | 3 +++ vite.config.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/nodemon.json b/nodemon.json index 0768a4245..a3a145b1d 100644 --- a/nodemon.json +++ b/nodemon.json @@ -1,4 +1,7 @@ { + "env": { + "__DEV__": "true" + }, "watch": [ "src", "utils", "vite.config.ts" ], diff --git a/vite.config.ts b/vite.config.ts index 421053aaf..bd75b9253 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,6 +22,7 @@ export default defineConfig({ publicDir, build: { outDir, + sourcemap: process.env.__DEV__ === "true", rollupOptions: { input: { devtools: resolve(pagesDir, "devtools", "index.html"),