carrot / roots-browserify

Roots v3 extension that uses browserify as a javascript pipeline
Other
21 stars 8 forks source link

Provide context local for file reference #23

Open SevereOverfl0w opened 8 years ago

SevereOverfl0w commented 8 years ago

Would it be within the scope of this extension to do something similar to what js_pipeline does and provide a js function, which will produce the code required to display the script in the browser?

Something similar to this perhaps: https://github.com/carrot/roots-js-pipeline/blob/master/lib/index.coffee#L47

jescalan commented 8 years ago

Yes, absolutely. I'll merge this and ship right away if you PR this in. It should be something like browserify() though, so as not to duplicate the js function in case for some reason someone is using both extensions :grinning: