mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix build errors
This commit is contained in:
parent
80a80c11e6
commit
15de686de1
14
gulp/html.js
14
gulp/html.js
@ -168,19 +168,19 @@ function gulptasksHTML($, gulp, buildFolder) {
|
||||
loadJs.type = "text/javascript";
|
||||
let scriptContent = "";
|
||||
scriptContent += `var bundleSrc = '${cachebust("bundle.js")}';\n`;
|
||||
scriptContent += `var bundleSrcTranspiled = '${cachebust(
|
||||
"bundle-transpiled.js"
|
||||
)}';\n`;
|
||||
// scriptContent += `var bundleSrcTranspiled = '${cachebust(
|
||||
// "bundle-transpiled.js"
|
||||
// )}';\n`;
|
||||
|
||||
if (integrity) {
|
||||
scriptContent +=
|
||||
"var bundleIntegrity = '" +
|
||||
computeIntegrityHash(path.join(buildFolder, "bundle.js")) +
|
||||
"';\n";
|
||||
scriptContent +=
|
||||
"var bundleIntegrityTranspiled = '" +
|
||||
computeIntegrityHash(path.join(buildFolder, "bundle-transpiled.js")) +
|
||||
"';\n";
|
||||
// scriptContent +=
|
||||
// "var bundleIntegrityTranspiled = '" +
|
||||
// computeIntegrityHash(path.join(buildFolder, "bundle-transpiled.js")) +
|
||||
// "';\n";
|
||||
} else {
|
||||
scriptContent += "var bundleIntegrity = null;\n";
|
||||
scriptContent += "var bundleIntegrityTranspiled = null;\n";
|
||||
|
Loading…
Reference in New Issue
Block a user