mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-04-05 19:20:13 +08:00
chore: rename build.ts -> build-main.ts
This commit is contained in:
parent
7d9e364b15
commit
da565f8ef0
@ -8,9 +8,9 @@
|
||||
"dev": "npm run dev:all",
|
||||
"dev:all": "concurrently -n=vue,ele -c=green,blue \"npm run dev:vue\" \"npm run dev:ele\"",
|
||||
"dev:vue": "vite",
|
||||
"dev:ele": "node -r ts-node/register script/build --env=development --watch",
|
||||
"dev:ele": "node -r ts-node/register script/build-main --env=development --watch",
|
||||
"build:vue": "vite build",
|
||||
"build:ele": "node -r ts-node/register script/build --env=production",
|
||||
"build:ele": "node -r ts-node/register script/build-main --env=production",
|
||||
"build": "rimraf dist && npm run build:vue && npm run build:ele && electron-builder"
|
||||
},
|
||||
"build": {
|
||||
|
@ -17,7 +17,7 @@ dotenv.config({ path: join(__dirname, '../.env') })
|
||||
|
||||
const argv = minimist(process.argv.slice(2))
|
||||
const opt = options(argv.env)
|
||||
const TAG = '[script/build.ts]'
|
||||
const TAG = '[build-main.ts]'
|
||||
const spinner = ora(`${TAG} Electron build...`)
|
||||
|
||||
if (argv.watch) {
|
Loading…
x
Reference in New Issue
Block a user