mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
20 lines
346 B
JavaScript
20 lines
346 B
JavaScript
import esbuild from "esbuild"
|
|
import path from "path"
|
|
|
|
export const config = {
|
|
entryPoints: ["src/index.ts"],
|
|
bundle: true,
|
|
minify: true,
|
|
platform: "node",
|
|
outfile: "dist/index.cjs",
|
|
sourcemap: true,
|
|
define: {
|
|
"process.env.NODE_ENV": '"production"',
|
|
},
|
|
alias: {
|
|
"@": path.resolve("./src"),
|
|
},
|
|
}
|
|
|
|
esbuild.build(config)
|