mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: use outdir for pages bundle
This commit is contained in:
1 parent
a8aa163302
commit
f2b8030bb2
2 files changed
+3
-1
No files matched your search
@@ -7,6 +7,7 @@ import * as bus from 'hydrooj/src/service/bus';
|
|||||||
import { Route, Handler } from 'hydrooj/src/service/server';
|
import { Route, Handler } from 'hydrooj/src/service/server';
|
||||||
import { PERM, PRIV } from 'hydrooj/src/model/builtin';
|
import { PERM, PRIV } from 'hydrooj/src/model/builtin';
|
||||||
import esbuild from 'esbuild';
|
import esbuild from 'esbuild';
|
||||||
|
import { tmpdir } from 'os';
|
||||||
import markdown from './backendlib/markdown';
|
import markdown from './backendlib/markdown';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@@ -19,6 +20,7 @@ const build = esbuild.buildSync({
|
|||||||
format: 'iife',
|
format: 'iife',
|
||||||
entryPoints: pageFiles.map((i) => join(global.Hydro.ui.manifest[i], i)),
|
entryPoints: pageFiles.map((i) => join(global.Hydro.ui.manifest[i], i)),
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
outdir: tmpdir(),
|
||||||
splitting: false,
|
splitting: false,
|
||||||
write: false,
|
write: false,
|
||||||
minify: !process.env.DEV,
|
minify: !process.env.DEV,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.34.21",
|
"version": "4.34.22",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user