|
|
@ -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")) +
|
|
|
|