Commit fd82e6e5 authored by Robert Knight's avatar Robert Knight

Fix warnings about `Buffer` constructor during `gulp build`

Fix warning about deprecated `Buffer` usage in Node 10 at the end of
`gulp build`.

See https://nodejs.org/api/buffer.html#buffer_buffer_from_buffer_alloc_and_buffer_allocunsafe
parent d041994c
......@@ -29,7 +29,7 @@ module.exports = function (opts) {
}, function (callback) {
var manifestFile = new VinylFile({
path: opts.name,
contents: new Buffer(JSON.stringify(manifest, null, 2), 'utf-8'),
contents: Buffer.from(JSON.stringify(manifest, null, 2), 'utf-8'),
});
this.push(manifestFile);
callback();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment