remount-router icon indicating copy to clipboard operation
remount-router copied to clipboard

Option: Additional directories/globs to watch

Open mustardamus opened this issue 7 years ago • 0 comments

Currently only controller files (options.controllersPath/options.controllersGlob) are watched for changes. But maybe we need to remount the router when additional files are changing, these that are required in the controllers, eg. Models.

Lets have an option for additional files to watch:

watchFiles: [
  './models/*.js',
  './assets/**/*'
]

Additionally state in documentation to use https://github.com/sindresorhus/import-fresh in controllers.

mustardamus avatar Sep 01 '17 15:09 mustardamus