mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
remove verbose log
This commit is contained in:
parent
f9f9b713c9
commit
cdfde12a2b
@ -3,10 +3,8 @@ process.env.NODE_ENV = 'production'
|
|||||||
import { dirname, join } from 'path'
|
import { dirname, join } from 'path'
|
||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
import { build } from 'vite'
|
import { build } from 'vite'
|
||||||
import chalk from 'chalk'
|
|
||||||
|
|
||||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||||
const TAG = chalk.bgBlue(' build.mjs ')
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Record<string, import('vite').InlineConfig>}
|
* @type {Record<string, import('vite').InlineConfig>}
|
||||||
@ -32,8 +30,7 @@ const viteConfigs = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function buildElectron() {
|
async function buildElectron() {
|
||||||
for (const [name, config] of Object.entries(viteConfigs)) {
|
for (const [, config] of Object.entries(viteConfigs)) {
|
||||||
console.log(TAG, name)
|
|
||||||
await build(config)
|
await build(config)
|
||||||
console.log() // for beautiful log.
|
console.log() // for beautiful log.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user