mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-29 01:38:26 +00:00
15 lines
344 B
JavaScript
15 lines
344 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;
|
||
|
}
|
||
|
}
|