3 Star 0 Fork 0

X1nming / xbyweb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.build.js 750 Bytes
一键复制 编辑 原始数据 按行查看 历史
modenghui 提交于 2024-03-15 23:21 . init
const ora = require("ora");
const { exec } = require("child_process");
const chalk = require("chalk");
let script = "vue-cli-service build";
let env = process.argv[2] || "";
if (process.argv[2] && env != "prod") {
script += " --mode " + env;
}
console.log(chalk.magenta("_| _|"));
console.log(chalk.magenta("_|_| _|_|"));
console.log(chalk.magenta(`_| _| _|`));
console.log(chalk.magenta("_| _|"));
console.log(chalk.magenta("_| _|"));
console.log("\n");
const spinner = ora(`Building for ${env || "prod"}...`);
spinner.start();
exec(script, (error, stdout) => {
if (error) {
console.log(chalk.red(`[error]: ${error}`));
spinner.stop();
return;
}
console.log("\n");
console.log(stdout);
spinner.stop();
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chanxxmmm/xbyweb.git
git@gitee.com:chanxxmmm/xbyweb.git
chanxxmmm
xbyweb
xbyweb
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891