2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

build: enable sourcemaps for renderer

- change vite host to localhost ip
This commit is contained in:
18alantom 2023-06-27 15:29:37 +05:30
parent a3590bbc5b
commit d5fc729d27
2 changed files with 2 additions and 2 deletions

View File

@ -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: {

View File

@ -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;
/**