From d5fc729d2761838bff197dbfba03f960b63269ec Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 27 Jun 2023 15:29:37 +0530 Subject: [PATCH] build: enable sourcemaps for renderer - change vite host to localhost ip --- build/scripts/build.mjs | 2 +- build/scripts/dev.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/scripts/build.mjs b/build/scripts/build.mjs index 9bdfd58a..e6d2d75f 100644 --- a/build/scripts/build.mjs +++ b/build/scripts/build.mjs @@ -67,7 +67,7 @@ async function buildRendererProcessSource() { await vite.build({ base: `/${base}`, root: path.join(root, 'src'), - build: { outDir }, + build: { outDir, sourcemap: true }, plugins: [vue()], resolve: { alias: { diff --git a/build/scripts/dev.mjs b/build/scripts/dev.mjs index 06b00e56..a363b171 100644 --- a/build/scripts/dev.mjs +++ b/build/scripts/dev.mjs @@ -7,7 +7,7 @@ import { getMainProcessCommonConfig } from './helpers.mjs'; process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'; process.env['NODE_ENV'] = 'development'; -process.env['VITE_HOST'] = '0.0.0.0'; +process.env['VITE_HOST'] = '127.0.0.1'; process.env['VITE_PORT'] = 6969; /**