browserify / watchify

watch mode for browserify builds
Other
1.79k stars 181 forks source link

watchify produces a much larger output file than directly invoking browserify #41

Closed mreinstein closed 10 years ago

mreinstein commented 10 years ago

in my package.json:

"scripts": {
    "watchify": "watchify assets/javascripts/app.coffee -dv --extension .js --extension .coffee -o assets/javascripts/bundle.js",
    "browserify": "browserify assets/javascripts/app.coffee --extension .js --extension .coffee -o assets/javascripts/bundle.js"
  },
"browserify": {
    "transform": [
      "coffeeify",
      "brfs"
    ]
  }

My resulting bundle.js is 2-3X larger with watchify. I'm using watchify@0.6.4 and browserify@3.41.0 . What gives?

hughsk commented 10 years ago

@mreinstein I imagine that would the the --debug flag you're using with watchify, but not browserify. Source maps take up a heap of space.

mreinstein commented 10 years ago

gah, how foolish of me. Sorry about that!

hughsk commented 10 years ago

No worries :)

mreinstein commented 10 years ago

perhaps the -d could also stand for "don't code @ 02:26am