This repository was archived by the owner on Jun 5, 2020. It is now read-only.
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
Accept a Buffer in addition to files in .compile()
#11
Open
Description
I've created a gulp plugin for Closure Compiler using this excellent module.
Gulp works on streams and buffers and not files while this module requires you to supply files. A lot of other Node things does this too.
It would be useful if you could also supply a buffer that is passed to the Closure Compiler stdin.
Like:
ClosureCompiler.compile(new Buffer('function foo() {}'), {}, function () {});