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?
I have a structure like this:
And
routes.js
looks like this:If I rename
about.js
tofoo.js
and continue saving files, watchify still uses the old routes (withabout
) until I go in and save theroutes.js
file. Any way around this?