Skip to content

Commit dff3c1e

Browse files
mimoduophated
authored andcommitted
Docs: Ensure "Inline plugins" example is runnable (#2365)
1 parent 2a84429 commit dff3c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started/7-using-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ exports.default = function() {
101101
.pipe(through2.obj(function(file, _, cb) {
102102
if (file.isBuffer()) {
103103
const code = uglify.minify(file.contents.toString())
104-
file.contents = Buffer.from(code)
104+
file.contents = Buffer.from(code.code)
105105
}
106106
cb(null, file);
107107
}))

0 commit comments

Comments
 (0)