ui/imports: fix asset imports

This commit is contained in:
Johannes Kirschbauer
2025-09-04 19:02:24 +02:00
parent 30d9c86015
commit 42bbd7c5fd
5 changed files with 19 additions and 16 deletions

View File

@@ -38,7 +38,7 @@ fs.readFile(manifestPath, { encoding: "utf8" }, (err, data) => {
assets.forEach((asset) => {
// console.log(asset);
if (asset.src === "index.html") {
asset.css.forEach((cssEntry) => {
asset.css?.forEach((cssEntry) => {
// css to be processed
const css = fs.readFileSync(`dist/${cssEntry}`, "utf8");