Page MenuHomeSealhub

esbuild.js
No OneTemporary

esbuild.js

const { build } = require("esbuild");
const { sassPlugin } = require("esbuild-sass-plugin");
const glob = require("tiny-glob");
const watch = process.argv.includes("--watch");
(async () => {
const entryPoints = await glob("./src/back/**/*.ts");
build({
entryPoints,
sourcemap: true,
outdir: "./dist/back",
logLevel: "info",
platform: "node",
watch,
target: "node16",
format: "cjs",
});
build({
entryPoints: ["./src/main.scss"],
sourcemap: true,
outfile: "./public/dist/style.css",
logLevel: "info",
watch,
plugins: [sassPlugin()],
});
build({
entryPoints: ["./src/front/index.ts"],
sourcemap: true,
outfile: "./public/dist/bundle.js",
logLevel: "info",
bundle: true,
watch,
});
})();

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 14:04 (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557267
Default Alt Text
esbuild.js (733 B)

Event Timeline