benbria / browserify-transform-tools

Utilities for writing browserify transforms.
MIT License
65 stars 15 forks source link

Supporting `appliesTo` configuration being set through command line #18

Open matthewdunsdon opened 8 years ago

matthewdunsdon commented 8 years ago

When running browserify from the command line, I am not able to pass through the appliesTo configuration.

browserify -t [ abc --opt1 val --appliesTo [ --includeExtensions [.html .abc] ] ] test.abc

Does anyone agree that this is this something we would want to support?

matthewdunsdon commented 8 years ago

By the way, I would be willing to create a PR to fix this if we can agree we want to support this.

Looking at the technical issue, this issue appears to be that when this command is run the following fact is true:

appliesTo = {
    includeExtensions: {
        '_': ['.html','.abc']
    }
}