Can you please give several explanations?
Closed this issue · 1 comments
lofti198 commented
Hi! Thank you for this solution! It is really awesome. Can you please explain several things:
- what is the purpose in this case to use Webpack's "multi-main entry" ?
- before running development, should I start all of watch:src, watch:dist and dev commands? If so , can I combine them as one command?
- which files typically should be excluded in watched directory?
- if I do not use typescript is that almost all the same, except of I ignore types in method definitions like here:
function getEntry(name: string)
?
pacexy commented
- With "multi-main entry", you don't need to place the import code in scripts, which means it's decoupled for scripts.
- Actually,
"dev": "concurrently yarn:watch:*"
script will run all thewatch:*
script concurrently. - If you don't know which files should be excluded, you don't need to specify it.
- Yes, just remove the types.