mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2025-12-10 04:20:16 -08:00
Fix build issues
This commit is contained in:
parent
3b4ae39caa
commit
07fb65f3b6
1 changed files with 5 additions and 5 deletions
10
gulp/html.js
10
gulp/html.js
|
|
@ -167,16 +167,16 @@ function gulptasksHTML($, gulp, buildFolder) {
|
||||||
const loadJs = document.createElement("script");
|
const loadJs = document.createElement("script");
|
||||||
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")) +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue