New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Transforms w/ Options #62
Comments
Maybe I'm misunderstanding this block, but according to node-browserify
to:
(example options definition):
Of course, I may just be totally misunderstanding this block, but this change appears to work in the way I thought the API option would be used. |
You can specify multiple transforms by using $ mochify --transform [ mything -x -y -z ] Does that answer your question? |
@mantoni Actually I was referring to using the module API, the example given in the README was:
Thanks! |
Ah, I see. Well, then you will have to look into the browserify API documentation. Mochify returns a Browserify instance. So this is what the API is like: b.transform(tr, opts={}) |
Ah, I didn't realize that it returned a browserify instance, moved my transforms to just use the browserify api directly and that works great. Thanks! |
I've been looking for an example of passing arguments to "hbsfy" transform via subarg syntax. Finally got it working and posting for others in case they're searching. I want to pass in these arguments:
(Reason for this is that I can't use the hbsfy/runtime because I need to dynamically register partials). The subarg syntax to do this is:
|
How do I specify options for transforms (using more than 1) using the API syntax? Saw this thread: #39 but I can't find a way to pass options to the transform.
Thanks!
The text was updated successfully, but these errors were encountered: