carwin / carwin/esdoc-webpack-plugin

Running webpack --watch triggers plugin twice on start

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.