equicord-companion
Version:
Equicord Companion is a vscode extension to test Equicord patches & webpack finds right from the comfort of your IDE
24 lines (21 loc) • 469 B
JavaScript
//@ts-check
import esbuild from "esbuild";
const define = {
IS_DEV: String(process.argv.includes("--dev"))
}
const entryPoints = ["./src/index.tsx"];
if(define.IS_DEV === "true") entryPoints.push("./src/index.html")
/**
* @type {esbuild.BuildOptions}
*/
export const commonOpts = {
entryPoints,
loader: {
".html": "copy"
},
outdir: "./dist",
bundle: true,
minify: true,
treeShaking: true,
define
}