Closed StanAngeloff closed 5 years ago
Problem solved?
I'm not sure, the original issue in Laravel Mix is still outstanding, I just can't get to a minimal reproducible state :(
@StanAngeloff i think problem deeply than in file-loader
, plugin or loader add new file to graph so webpack recompile, we it is happens again and webpack recompile, start to debug with plugins
v8.15.1
6.9.0
4.29.6
3.0.1
Expected Behavior
When using
output.path
inwebpack.config.js
I expectwebpack --watch
to react to file changes only once.Actual Behavior
file-loader
putswebpack --watch
in a constant re-compilation cycle.Code
How Do We Reproduce?
Run the script above which will install all Node dependencies, create the necessary
webpack.config.js
file and run the--watch
sub-command.Note how output is constantly printed and erased below the line
Entrypoint main = main.js
If
output.path
ormodule.rules.0.loaders.0.options.name
is omitted, this bug does not manifest itself.Originally reported as part of https://github.com/JeffreyWay/laravel-mix/issues/1942