mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Fix build errors
This commit is contained in:
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";
|
||||
|
||||
Reference in New Issue
Block a user