auto open default browser
This commit is contained in:
parent
f0edcbeeea
commit
3ee7efcda9
2 changed files with 17 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
|||
"scripts": {
|
||||
"dev": "concurrently \"npm run dev:electron\" \"npm run dev:web\"",
|
||||
"dev:electron": "vite -c vite.config.electron.ts",
|
||||
"dev:web": "vite -c vite.config.web.ts",
|
||||
"dev:web": "vite -c vite.config.web.ts --open",
|
||||
"build": "concurrently \"npm run build:electron\" \"npm run build:web\"",
|
||||
"build:electron": "tsc && vite build -c vite.config.electron.ts --mode=production && electron-builder",
|
||||
"build:web": "tsc && vite build -c vite.config.web.ts --mode=production",
|
||||
|
|
@ -42,4 +42,4 @@
|
|||
"vite-plugin-electron-renderer": "^0.14.5"
|
||||
},
|
||||
"main": "dist-electron/main.js"
|
||||
}
|
||||
}
|
||||
|
|
@ -2,10 +2,13 @@
|
|||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"lib": [
|
||||
"ES2020",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
|
|
@ -13,13 +16,19 @@
|
|||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": ["src", "electron"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
"include": [
|
||||
"src",
|
||||
"electron"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue