-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recompiles continuously until recently modified file is 10 seconds old #51
Comments
I've run into the same issue; within our webpack config, we have a loader that maps CSS modules to TypeScript definition files. When these |
See webpack/watchpack#51 for more information. Adds a temporary webpack plugin that prevents new compilations from being triggered when new files are added during the initial build when the --watch flag is set.
Think this is related to issue #25. |
Looks like it is a duplicate. Will close this. |
* Prevent css.d.ts files from triggering builds. When CSS files are changed, any newly-created css.d.ts files should not trigger rebuilds in watch mode. * Add stopgap IgnoreUnmodifiedPlugin See webpack/watchpack#51 for more information. Adds a temporary webpack plugin that prevents new compilations from being triggered when new files are added during the initial build when the --watch flag is set. * Run IgnoreUnmodifiedPlugin only in watch mode.
Hello,
I'm using
webpack-dev-server
and a custom script to build and view a project I'm working on. I run it like this:./docs/scripts/index.js && webpack-dev-server
The Node script creates a JSON file that is required in my bundle and that
webpack-dev-server
watches. The problem, however, is thatwebpack-dev-sever
will constantly recompile until the JSON file is 10 seconds old.Below is the console output. I've added my own
console.log
's within watchpack (prefixed by***
) to monitor the timestamps. The recompilation loop ends when the timestamp inDirectoryWatcher.js
(L178) is at least 10,000 more than the timestamp inwatchpack.js
(L100).I do not see this problem if I run the documentation script first, manually wait ten seconds, then run
webpack-dev-server
.The number seems to correspond to
FS_ACCURACY
, but I don't understand how that works.The text was updated successfully, but these errors were encountered: