browserify / watchify

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

watching folders for bulkify / bulk-require #101

Closed mattdesl closed 9 years ago

mattdesl commented 10 years ago

I have a structure like this:

  sections/
      home.js
      about.js
  main.js
  routes.js

And routes.js looks like this:

var bulk = require('bulk-require')
module.exports = bulk(__dirname+'/sections', ['**/*.js'])

If I rename about.js to foo.js and continue saving files, watchify still uses the old routes (with about) until I go in and save the routes.js file. Any way around this?

zertosh commented 9 years ago

Nope - that's caching at work.