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/esbuild.config.js

18 lines
405 B
JavaScript

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/"),
});