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";
|
loadJs.type = "text/javascript";
|
||||||
let scriptContent = "";
|
let scriptContent = "";
|
||||||
scriptContent += `var bundleSrc = '${cachebust("bundle.js")}';\n`;
|
scriptContent += `var bundleSrc = '${cachebust("bundle.js")}';\n`;
|
||||||
scriptContent += `var bundleSrcTranspiled = '${cachebust(
|
// scriptContent += `var bundleSrcTranspiled = '${cachebust(
|
||||||
"bundle-transpiled.js"
|
// "bundle-transpiled.js"
|
||||||
)}';\n`;
|
// )}';\n`;
|
||||||
|
|
||||||
if (integrity) {
|
if (integrity) {
|
||||||
scriptContent +=
|
scriptContent +=
|
||||||
"var bundleIntegrity = '" +
|
"var bundleIntegrity = '" +
|
||||||
computeIntegrityHash(path.join(buildFolder, "bundle.js")) +
|
computeIntegrityHash(path.join(buildFolder, "bundle.js")) +
|
||||||
"';\n";
|
"';\n";
|
||||||
scriptContent +=
|
// scriptContent +=
|
||||||
"var bundleIntegrityTranspiled = '" +
|
// "var bundleIntegrityTranspiled = '" +
|
||||||
computeIntegrityHash(path.join(buildFolder, "bundle-transpiled.js")) +
|
// computeIntegrityHash(path.join(buildFolder, "bundle-transpiled.js")) +
|
||||||
"';\n";
|
// "';\n";
|
||||||
} else {
|
} else {
|
||||||
scriptContent += "var bundleIntegrity = null;\n";
|
scriptContent += "var bundleIntegrity = null;\n";
|
||||||
scriptContent += "var bundleIntegrityTranspiled = null;\n";
|
scriptContent += "var bundleIntegrityTranspiled = null;\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user