mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-07 12:48:06 +00:00
style: perf code style
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// 修改自
|
||||
// https://github.com/luxueyan/vite-transform-globby-import/blob/master/src/index.ts
|
||||
|
||||
// TODO 目前还不能监听文件新增及删除 内容已经改变,缓存问题?
|
@@ -1,6 +1,7 @@
|
||||
// #!/usr/bin/env node
|
||||
|
||||
import { sh } from 'tasksfile';
|
||||
|
||||
import { argv } from 'yargs';
|
||||
import { runBuildConfig } from './buildConf';
|
||||
import { runUpdateHtml } from './updateHtml';
|
||||
@@ -9,7 +10,7 @@ import { errorConsole, successConsole } from '../utils';
|
||||
export const runBuild = async () => {
|
||||
try {
|
||||
const argvList = argv._;
|
||||
let cmd = `cross-env NODE_ENV=production vite build`;
|
||||
let cmd = `npx cross-env NODE_ENV=production vite build`;
|
||||
await sh(cmd, {
|
||||
async: true,
|
||||
nopipe: true,
|
||||
|
Reference in New Issue
Block a user