This commit is contained in:
undefined committed 2023-02-23 14:21:09 +08:00
1 parent a0ef60bfeb
commit 4fe734a6f3
4 files changed
+8 -11

No files matched your search

+2 -1
View File
@@ -77,7 +77,8 @@ export async function buildUI() {
const lazyModules: string[] = [];
const newFiles = ['entry.js'];
for (const addon of global.addons) {
const publicPath = resolve(addon, 'public');
let publicPath = resolve(addon, 'frontend');
if (!fs.existsSync(publicPath)) publicPath = resolve(addon, 'public');
if (!fs.existsSync(publicPath)) continue;
const targets = fs.readdirSync(publicPath);
for (const target of targets) {