ui: use outdir for pages bundle

This commit is contained in:
undefined committed 2022-03-23 22:34:58 +08:00
1 parent a8aa163302
commit f2b8030bb2
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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 -1
View File
@@ -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",