mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
No need for this complex resolve
This commit is contained in:
parent
8d766ac504
commit
708637e390
@ -56,7 +56,8 @@ async function generateIconSourceMap(icons, manifestLocation) {
|
||||
const fs = require("fs").promises;
|
||||
for (const icon of Object.values(icons)) {
|
||||
const [location] = icon.split("?");
|
||||
const resolvedLocation = path.resolve(__dirname, "../../", manifestLocation, location);
|
||||
// resolve location against manifestLocation
|
||||
const resolvedLocation = path.resolve(manifestLocation, location);
|
||||
const iconData = fs.readFile(resolvedLocation);
|
||||
promises.push(iconData);
|
||||
const fileName = path.basename(resolvedLocation);
|
||||
|
Loading…
Reference in New Issue
Block a user