Skip to content

Commit

Permalink
new Buffer to Buffer.from
Browse files Browse the repository at this point in the history
  • Loading branch information
ggkovacs committed Jun 22, 2019
1 parent 87eb405 commit a07e60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function gulpPx2Rem(options, postCssOptions) {
}

try {
file.contents = new Buffer(px2rem.process(file.contents.toString(), options, postCssOptions));
file.contents = Buffer.from(px2rem.process(file.contents.toString(), options, postCssOptions));
} catch (err) {
this.emit('error', new PluginError(PLUGIN_NAME, err));
}
Expand Down

0 comments on commit a07e60a

Please sign in to comment.