You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
m3u8-downloader-TypeScript/script/dev-server.js

30 lines
506 B
JavaScript

const concurrently = require("concurrently");
concurrently(
[
{
command: "vite",
name: "vite",
prefixColor: "green",
env: { NODE_ENV: "development" },
},
{
command: "node esbuild.config.js && electron dist/main/index.js",
name: "electron",
prefixColor: "blue",
env: { NODE_ENV: "development" },
},
],
{
prefix: "name",
killOthers: ["failure", "success"],
}
).then(
() => {
// 成功
},
() => {
// 失败
}
);