From 58612f869a57fa33092864ebec18b8ed44726315 Mon Sep 17 00:00:00 2001 From: Abhimanyu Vashisht Date: Sun, 20 May 2018 19:48:54 +0530 Subject: [PATCH] Replace deprecated new Buffer(string) constructor with Buffer.from(string) --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index a0bc0eb54..2ce78b7b2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -124,7 +124,7 @@ function createStringSource(filename, content) { source._read = function () { this.push(new Vinyl({ path: filename, - contents: new Buffer(content), + contents: Buffer.from(content), })); this.push(null); };