Changed Buffer in json task

Because of DeprecationWarning.
Buffer() to Buffer.from()
This commit is contained in:
Stephan 2019-03-28 20:40:41 +01:00
parent ae780c4993
commit 0fa1b3c4b4

View file

@ -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));
}