Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Use Browserify #93

wants to merge 4 commits into


None yet
1 participant

scribu commented Mar 23, 2013

Current situation:

  • development: coffee --watch over many small files + PHP logic to load the files separately
  • production: custom build script + PHP logic

With Browserify:

  • development: browserify --debug main.js > bundle.dev.js
  • production: browserify main.js > bundle.js

Unfortunately, Browserify doesn't have a --watch flag.

Inspiration: http://esa-matti.suuronen.org/blog/2013/03/22/journey-from-requirejs-to-browserify/


scribu commented Mar 23, 2013

Noticed that the uglify-js API has changed since the previous version.


scribu commented Mar 25, 2013

As it currently stands, using Browserify doesn't seem like a good idea. The neat collection of classes becomes a mishmash of module.exports.

And you still need to have CoffeScript installed globally, in order to use cake.

Since the goal really wasn't having require available, I think grunt.js would make more sense.

@scribu scribu closed this Apr 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment