style: perf code style

This commit is contained in:
vben
2020-10-14 21:22:08 +08:00
parent 7c7f35a3d7
commit 77db3d5f80
11 changed files with 35 additions and 39 deletions

View File

@@ -1,3 +1,4 @@
// 修改自
// https://github.com/luxueyan/vite-transform-globby-import/blob/master/src/index.ts
// TODO 目前还不能监听文件新增及删除 内容已经改变,缓存问题?

View File

@@ -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,