HenrikJoreteg / moonboots

A set of conventions and tools for bundle and serving clientside apps with node.js
159 stars 20 forks source link

Invalid browserify docs URLs in readme #69

Closed jzaefferer closed 8 years ago

jzaefferer commented 8 years ago

Both URLs pointing at browserify docs are invalid, the anchors don't exist on the linked-to page anymore:

https://github.com/substack/node-browserify#bbundleopts-cb https://github.com/substack/node-browserify#btransformtr

I'm trying to add a transform to browserfiy, but based on the documentation here and on browserfiy, can't figure out how to do that. Correct links would likely help a lot.

jzaefferer commented 8 years ago

For the record, I figured it out eventually:

new Moonboots({
  moonboots: {
    browserify: {
      transform: 'envify'
    }
  }
})

As far as I can tell, the README is also wrong in stating that it passes options to browserify's bundle() method. The main module (what require('browserify') returns) accepts options as its second argument, that must be what's being passed through. The bundle() method only takes a callback argument.

HenrikJoreteg commented 8 years ago

Hi @jzaefferer, thanks for following up. Would you mind sending a PR to fix this?

jzaefferer commented 8 years ago

Sorry, can't help with addressing this. By now I'm not using this module anymore, but more importantly, I couldn't figure out what the URLs were supposed to point at.