From 7efc32ec8a79ff634046c3ea1736a23bb51405b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Thu, 27 Jan 2022 12:22:16 +0800 Subject: [PATCH] chore: update --- scripts/build.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index c7247d0..e7483c8 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -2,7 +2,7 @@ process.env.NODE_ENV = 'production' import { dirname, join } from 'path' import { fileURLToPath } from 'url' -import { build as viteBuild } from 'vite' +import { build } from 'vite' import chalk from 'chalk' const __dirname = dirname(fileURLToPath(import.meta.url)) @@ -34,7 +34,7 @@ const viteConfigs = { async function buildElectron() { for (const [name, config] of Object.entries(viteConfigs)) { console.log(TAG, name) - await viteBuild(config) + await build(config) console.log() // for beautiful log. } }