Required tests are not re-evaluated when using webpack-dev-server
tremby opened this issue · comments
When using webpack-dev-server and a file is edited such that a required test is either added or removed, this isn't noticed, and the bundled tests don't change.
I need to restart webpack-dev-server for things to take effect.
Hi,
This is actually the correct behaviour (at least for the moment), though it might not be that clear from the documentation.
The loader was built to solve my annoyance with modernizr-loader, where I had to specify what tests to run in the configuration. Using customizr solved this for me, but as you have noticed, the loader is run only once, on startup.
A "quick fix" is to comment the import statement, let webpack rebuild and then uncomment for another rebuild. But it might just be quicker to restart building.
But I'm gonna try something later today that might fix it.
This should be fixed in 0.1.0
Seems to work -- great!