ui: use outdir for pages bundle

pull/326/head
undefined 3 years ago
parent a8aa163302
commit f2b8030bb2

@ -7,6 +7,7 @@ import * as bus from 'hydrooj/src/service/bus';
import { Route, Handler } from 'hydrooj/src/service/server';
import { PERM, PRIV } from 'hydrooj/src/model/builtin';
import esbuild from 'esbuild';
import { tmpdir } from 'os';
import markdown from './backendlib/markdown';
const {
@ -19,6 +20,7 @@ const build = esbuild.buildSync({
format: 'iife',
entryPoints: pageFiles.map((i) => join(global.Hydro.ui.manifest[i], i)),
bundle: true,
outdir: tmpdir(),
splitting: false,
write: false,
minify: !process.env.DEV,

@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.34.21",
"version": "4.34.22",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",

Loading…
Cancel
Save