webpack-contrib / webpack-hot-middleware

Webpack hot reloading you can attach to your own server
MIT License
2.34k stars 296 forks source link

list files changed #173

Open dylang opened 7 years ago

dylang commented 7 years ago

It would be nice to know what files thinks have changed. This can help debug issues where changing a file doesn't reload, or when it reloads without changing a file.

glenjamin commented 7 years ago

Seems like a reasonable suggestion to me, PRs welcome.

dylang commented 7 years ago

Results of spending too much time trying to figure out how get the changed file:

compiler.plugin('invalid', (filename) => {
    console.log('File changed', filename);
});

Now that I know how to do this, it would be nice if webpack-hot-middleware handled it, but not required.