Added Debug possibilities to VS Code
This commit is contained in:
1 parent
a74cee6536
commit
79302c328d
2 files changed
+39
-6
No files matched your search
+4
-2
@@ -29,14 +29,16 @@ export default defineConfig(({ mode }) => {
|
||||
{
|
||||
entry: 'src/main/index.ts',
|
||||
onstart({ startup }) {
|
||||
startup()
|
||||
const debugArgs = ['.', '--inspect=9228', '--remote-debugging-port=9229']
|
||||
startup(debugArgs)
|
||||
},
|
||||
vite: {
|
||||
root: resolve('.'),
|
||||
base: './',
|
||||
publicDir: resolve('./src/public'),
|
||||
build: {
|
||||
sourcemap: true,
|
||||
assetsDir: '.',
|
||||
publicDir: resolve('./src/public'),
|
||||
outDir: 'dist/main',
|
||||
rollupOptions: {
|
||||
external: ['electron', ...builtinModules]
|
||||
|
||||
Reference in new issue
Block a user