mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
extract function for script tag url
This commit is contained in:
parent
f83a0cec4e
commit
a504e74f54
@ -32,7 +32,7 @@ export default {
|
|||||||
polyfillModulePreload: false,
|
polyfillModulePreload: false,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
// legacyBuild(path.join(__dirname, "src/platform/web/index.html?html-proxy&index=0.js"), {
|
// legacyBuild(scriptTagPath(path.join(__dirname, "src/platform/web/index.html"), 0), {
|
||||||
// "./Platform": "./LegacyPlatform"
|
// "./Platform": "./LegacyPlatform"
|
||||||
// }, "hydrogen-legacy", [
|
// }, "hydrogen-legacy", [
|
||||||
// './legacy-polyfill',
|
// './legacy-polyfill',
|
||||||
@ -44,3 +44,7 @@ export default {
|
|||||||
"HYDROGEN_VERSION": JSON.stringify(version)
|
"HYDROGEN_VERSION": JSON.stringify(version)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function scriptTagPath(htmlFile, index) {
|
||||||
|
return `${htmlFile}?html-proxy&index=${index}.js`;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user