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.
18 lines
405 B
JavaScript
18 lines
405 B
JavaScript
4 years ago
|
const { resolve } = require("path");
|
||
|
console.log(__dirname);
|
||
|
|
||
|
require("dotenv").config({
|
||
|
path: resolve(__dirname, `.env.${process.env.NODE_ENV}`),
|
||
|
});
|
||
|
|
||
|
require("esbuild").buildSync({
|
||
|
entryPoints: [resolve(__dirname, "./main/index.ts")],
|
||
|
bundle: true,
|
||
|
platform: "node",
|
||
|
sourcemap: true,
|
||
|
target: ["node10.4"],
|
||
|
external: ["electron"],
|
||
|
define: {},
|
||
|
outdir: resolve(__dirname, "./dist/"),
|
||
|
});
|