Skip to content
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

Running webpack --watch triggers plugin twice on start #2

Open
carwin opened this issue Dec 2, 2020 · 0 comments
Open

Running webpack --watch triggers plugin twice on start #2

carwin opened this issue Dec 2, 2020 · 0 comments

Comments

@carwin
Copy link
Owner

carwin commented Dec 2, 2020

Running Webpack in watch mode kicks off the Plugin twice.

I'm not 100% why, but I think it has something to do with the fact that ESDoc itself seems to drop a file into your source directory, temporarily, when it runs its own plugins: .external-ecmascript.js.

Additionally, it could be due to the fact that this project is creating a tmp file to house the combined configuration options from the given configuration file and any options you pass to ESDoc from your webpack configuration.

Or it could be that when the docs are emitted by the child process, the watch proceses sees the change and decides to go again.

Whatever the case, it's annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant