browserify / browserify-handbook

how to build modular applications with browserify
Other
4.58k stars 292 forks source link

Update docs on transform package.json config opts #52

Closed gmaclennan closed 9 years ago

gmaclennan commented 9 years ago

The syntax for configuring transforms and passing sub arguments is not obvious. It took me a good 30 mins of hunting around to understand that to do this:

browserify index.js -t [ mytransform --foo bar --qux]

I need to do this:

"browserify": {
  "transform": [
    ["mytransform", { "foo": "bar", "qux": true }]
  ]
}