修复热加载自定义css无法被正确加载。

修复热加载自定义css无法被正确加载。
This commit is contained in:
loneyclown 2024-06-15 00:23:44 +08:00 committed by GitHub
parent 3fd2bfdde7
commit ff3c9a1149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ for (const flie of flies) {
router.get(url, ctx => {
ctx.body = Com.create(item.element, {
...item.options,
html_head: `${item?.html_head ?? ''}<link rel="stylesheet" href="/output.css">`,
html_head: `${item?.options?.html_head ?? ''}<link rel="stylesheet" href="/output.css">`,
file_create: false
})
})