修改package中scripts
This commit is contained in:
parent
bb6588ec05
commit
e1edf8009e
@ -11,7 +11,7 @@ let p = require('path').join(NMApiPath + '/node_modules');
|
||||
require('module').globalPaths.unshift(p); //加入到module的路径列表
|
||||
|
||||
console.log(process.resourcesPath, NMApiPath)
|
||||
const svc = require(NMApiPath + '/app.js')
|
||||
if(!isDev)const svc = require(NMApiPath + '/app.js')
|
||||
|
||||
function createWindow() {
|
||||
// Create the browser window.
|
||||
|
@ -4,11 +4,11 @@
|
||||
"author": "zlyum",
|
||||
"main": "electron/electron.js",
|
||||
"scripts": {
|
||||
"dev": "vite --port 3301",
|
||||
"dev": "yarn svr & vite --port 3301",
|
||||
"build": "vite build",
|
||||
"serve": "vite preview",
|
||||
"vite-tauri": "vite-tauri",
|
||||
"svr": "node ./NMApi/app.js",
|
||||
"svr": "node ../NMApi/app.js",
|
||||
"electron": "wait-on tcp:3301 && cross-env IS_DEV=true electron .",
|
||||
"electron:pack": "electron-builder --dir",
|
||||
"electron:dev": "concurrently -k \"cross-env BROWSER=none yarn dev\" \"yarn electron\"",
|
||||
|
Loading…
x
Reference in New Issue
Block a user