mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-18 06:09:58 +00:00
15 lines
346 B
JavaScript
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;
|
|
}
|
|
}
|