|
@@ -1,6 +1,6 @@
|
|
// #!/usr/bin/env node
|
|
// #!/usr/bin/env node
|
|
|
|
|
|
-import { sh } from 'tasksfile';
|
|
|
|
|
|
+// import { sh } from 'tasksfile';
|
|
|
|
|
|
import { argv } from 'yargs';
|
|
import { argv } from 'yargs';
|
|
import { runBuildConfig } from './buildConf';
|
|
import { runBuildConfig } from './buildConf';
|
|
@@ -11,12 +11,12 @@ import { startGzipStyle } from '../plugin/gzip/compress';
|
|
export const runBuild = async () => {
|
|
export const runBuild = async () => {
|
|
try {
|
|
try {
|
|
const argvList = argv._;
|
|
const argvList = argv._;
|
|
- let cmd = `cross-env NODE_ENV=production vite build`;
|
|
|
|
- // await run('cross-env', ['NODE_ENV=production', 'vite', 'build']);
|
|
|
|
- await sh(cmd, {
|
|
|
|
- async: true,
|
|
|
|
- nopipe: true,
|
|
|
|
- });
|
|
|
|
|
|
+ // let cmd = `cross-env NODE_ENV=production vite build`;
|
|
|
|
+ // // await run('cross-env', ['NODE_ENV=production', 'vite', 'build']);
|
|
|
|
+ // await sh(cmd, {
|
|
|
|
+ // async: true,
|
|
|
|
+ // nopipe: true,
|
|
|
|
+ // });
|
|
|
|
|
|
// Generate configuration file
|
|
// Generate configuration file
|
|
if (!argvList.includes('no-conf')) {
|
|
if (!argvList.includes('no-conf')) {
|