cobalt/src/modules/build.js
2022-08-16 13:14:19 +06:00

15 lines
346 B
JavaScript

import * as esbuild from "esbuild";
export async function buildFront() {
try {
await esbuild.build({
entryPoints: ['src/front/cobalt.js', 'src/front/cobalt.css'],
outdir: `min/`,
minify: true,
loader: { ".js": "js", ".css": "css" }
})
} catch (e) {
return;
}
}