mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Removed google analitycs
This commit is contained in:
parent
39198187b9
commit
5a10e73dc5
@ -18,12 +18,7 @@ function computeIntegrityHash(fullPath, algorithm = "sha256") {
|
|||||||
*/
|
*/
|
||||||
function gulptasksHTML($, gulp, buildFolder) {
|
function gulptasksHTML($, gulp, buildFolder) {
|
||||||
const commitHash = buildUtils.getRevision();
|
const commitHash = buildUtils.getRevision();
|
||||||
async function buildHtml({
|
async function buildHtml({ standalone = false, integrity = true, enableCachebust = true }) {
|
||||||
googleAnalytics = false,
|
|
||||||
standalone = false,
|
|
||||||
integrity = true,
|
|
||||||
enableCachebust = true,
|
|
||||||
}) {
|
|
||||||
function cachebust(url) {
|
function cachebust(url) {
|
||||||
if (enableCachebust) {
|
if (enableCachebust) {
|
||||||
return buildUtils.cachebust(url, commitHash);
|
return buildUtils.cachebust(url, commitHash);
|
||||||
@ -165,7 +160,6 @@ function gulptasksHTML($, gulp, buildFolder) {
|
|||||||
const data = BUILD_VARIANTS[variant];
|
const data = BUILD_VARIANTS[variant];
|
||||||
gulp.task("html." + variant + ".dev", () => {
|
gulp.task("html." + variant + ".dev", () => {
|
||||||
return buildHtml({
|
return buildHtml({
|
||||||
googleAnalytics: false,
|
|
||||||
standalone: data.standalone,
|
standalone: data.standalone,
|
||||||
integrity: false,
|
integrity: false,
|
||||||
enableCachebust: false,
|
enableCachebust: false,
|
||||||
@ -173,7 +167,6 @@ function gulptasksHTML($, gulp, buildFolder) {
|
|||||||
});
|
});
|
||||||
gulp.task("html." + variant + ".prod", () => {
|
gulp.task("html." + variant + ".prod", () => {
|
||||||
return buildHtml({
|
return buildHtml({
|
||||||
googleAnalytics: !data.standalone,
|
|
||||||
standalone: data.standalone,
|
standalone: data.standalone,
|
||||||
integrity: true,
|
integrity: true,
|
||||||
enableCachebust: !data.standalone,
|
enableCachebust: !data.standalone,
|
||||||
|
Loading…
Reference in New Issue
Block a user