1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-25 13:25:23 +00:00

Switch to es6 again

This commit is contained in:
tobspr
2022-06-16 12:21:03 +02:00
parent 781273e91d
commit 80a80c11e6
3 changed files with 11 additions and 16 deletions

View File

@@ -167,16 +167,16 @@ function gulptasksHTML($, gulp, buildFolder) {
const loadJs = document.createElement("script");
loadJs.type = "text/javascript";
let scriptContent = "";
// scriptContent += `var bundleSrc = '${cachebust("bundle.js")}';\n`;
scriptContent += `var bundleSrc = '${cachebust("bundle.js")}';\n`;
scriptContent += `var bundleSrcTranspiled = '${cachebust(
"bundle-transpiled.js"
)}';\n`;
if (integrity) {
// scriptContent +=
// "var bundleIntegrity = '" +
// computeIntegrityHash(path.join(buildFolder, "bundle.js")) +
// "';\n";
scriptContent +=
"var bundleIntegrity = '" +
computeIntegrityHash(path.join(buildFolder, "bundle.js")) +
"';\n";
scriptContent +=
"var bundleIntegrityTranspiled = '" +
computeIntegrityHash(path.join(buildFolder, "bundle-transpiled.js")) +