I made a dummy project, to get the simplest situation where the problem occurs:
ExtraWatchWebpackPlugin_bug.zip
If you run npm run build, it will watch index.js, as it is the entry point, but it will not watch extra.js.
However, if you uncomment the webpack.BannerPlugin plugin in webpack.config.js, now it successfully watch extra.js.
I can't explain this behavior. I added some console logs in ExtraWatchWebpackPlugin, and it seems like it always reacts when extra.js is modified, but the output file is not rebuilt.
Any help appreciated!
I made a dummy project, to get the simplest situation where the problem occurs:
ExtraWatchWebpackPlugin_bug.zip
If you run
npm run build, it will watchindex.js, as it is the entry point, but it will not watchextra.js.However, if you uncomment the
webpack.BannerPluginplugin inwebpack.config.js, now it successfully watchextra.js.I can't explain this behavior. I added some console logs in
ExtraWatchWebpackPlugin, and it seems like it always reacts whenextra.jsis modified, but the output file is not rebuilt.Any help appreciated!