Browserify
A cheatsheet by @rstacruz|Refreshed 7 months ago.Refresh|View source on Github
browserify input.js
  -o output.js
  -t coffeeify
  -t [ coffeeify --extension coffee ]

  -u react (--exclude: omit a file)
  -x react (--external: reference in another bundle)
  -i react (--ignore: stub a file)
  -s Myapp (--standalone: generate a UMD bundle)
  --debug

Programmatic usage

Programmatic usage

browserify = require('browserify')
browserify()
  .add('main.js')
  .bundle()
  .transform(coffeeify)
  .transform({extensions: '.coffee'}, coffeeify)
  .pipe(process.stdout)

browserify({})

Tools

Tools

  • watchify (recompiles on demand)
  • beefy (http server)
  • debowerify
  • es6ify (es6 to es5)

Transforms

  • coffeeify
  • ractify
  • reactify
  • brfs
  • cssify
  • https://github.com/substack/node-browserify/wiki/list-of-transforms