From 87e4c1d2f950504154afc6b6b44e06ad0a51fe47 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Tue, 21 Nov 2017 09:36:09 +0100 Subject: [PATCH] [BUGFIX] Assinging window.config with stringify --- gulp/tasks/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulp/tasks/html.js b/gulp/tasks/html.js index ede1677..e93a743 100644 --- a/gulp/tasks/html.js +++ b/gulp/tasks/html.js @@ -1,7 +1,7 @@ const fs = require('fs'); // stringify functions https://gist.github.com/cowboy/3749767 -var stringify = function (obj, prop) { +var stringify = function (obj) { var placeholder = '____PLACEHOLDER____'; var fns = []; var json = JSON.stringify(obj, function (key, value) { @@ -14,7 +14,7 @@ var stringify = function (obj, prop) { json = json.replace(new RegExp('"' + placeholder + '"', 'g'), function () { return fns.shift(); }); - return 'this["' + prop + '"] = ' + json + ';'; + return json; }; module.exports = function (gulp, plugins, config, env) {