What's Browserify?


 No!

Module == Require.js

Browserifyhttp://browserify.org/

Usage

// main.js
var hoge = require('./hoge') ; hoge();//hello!
// hoge.jsfunction hoge() {  alert('hello!');}
module.exports = hoge; 

Usage


 $ browserify js/main.js -o js/product.js

Pros

  • Easy to use
  • Use NPM
  • Use Node.js API


    • Cons


      • Can't use async download
      • Fewer resoruce for Japanese
      • Can't set option

      Thanks!

      Photo Credit



      What's Browserify?

      By layzie

      What's Browserify?

      モジュールローダー界はRequire.js一強状態だったわけですが、このBrowserifyが一陣の風を起してくれるんじゃないだろうか?

      • 2,165