You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
Repository navigation
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
I see. Do you know if closure compiler itself allows compilation of stdin? That'd be required to make something like this work. Everything else would still require a temporary file.
Activity
dcodeIO commentedon Dec 30, 2013
I see. Do you know if closure compiler itself allows compilation of stdin? That'd be required to make something like this work. Everything else would still require a temporary file.
sindresorhus commentedon Dec 30, 2013
Looks like it https://www.google.no/search?q=closure+compiler+stdin&oq=closure+compiler&aqs=chrome.0.69i59l3j69i57j69i60j69i65.2516j0j7&sourceid=chrome&espv=210&es_sm=91&ie=UTF-8
Would be something like:
sindresorhus commentedon Feb 8, 2014
Any update on this?
vjeux commentedon Feb 22, 2014
Bump, I would also really like to use this inside of a Connect pipeline. It's a shame to have to write content to a temporary file ;(
steida commentedon Feb 23, 2014
+1 We demand that :-) Should I send PR?
callumlocke commentedon Mar 20, 2014
Any update?
steida commentedon Apr 1, 2014
It's possible to use buffer for Closure Compiler. But unfortunatelly not like that:
From my experiments it seems that closure_entry_point option does not work with piped files. Especially, compiler seems to not be able to reorder files as needed. This https://code.google.com/p/closure-compiler/wiki/ManageClosureDependencies simply does not work.
But when I use plain old -js parameter, it works.
There is also another issue related to Windows, http://stackoverflow.com/questions/3205027/maximum-length-of-command-line-string
Fortunatelly, compiler supports special flag file.
So I am almost decided to use https://github.com/vesln/temporary, there is no other way.
New gulp-closure-compiler (or another name) will be finished soon.