cobalt/src/modules/build.js

15 lines
346 B
JavaScript
Raw Normal View History

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,
2022-08-16 08:14:19 +01:00
loader: { ".js": "js", ".css": "css" }
})
} catch (e) {
return;
}
}