mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-06 17:44:33 +00:00
Fix build issues
This commit is contained in:
parent
3b4ae39caa
commit
07fb65f3b6
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…
Reference in New Issue
Block a user