From 0fa1b3c4b430d65ed2f3a39fa02e9ced281f8358 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 28 Mar 2019 20:40:41 +0100 Subject: [PATCH] Changed Buffer in json task Because of DeprecationWarning. Buffer() to Buffer.from() --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 519a074..f592d0d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -98,7 +98,7 @@ function json() { return src(input.data) .pipe(plumber()) .pipe(jsonConcat(hippie.jsonFile +'.json', function(data) { - return new Buffer(JSON.stringify(data)); + return new Buffer.from(JSON.stringify(data)); })) .pipe(dest(output.data)); }