craftamap/esbuild-plugin-html

Print message when no entry scripts injected into HTML template

denis-ok opened this issue · 1 comments

I've had a situation when entrypoints parameter contained a slightly incorrect path. I passed an absolute path, but the plugin expects a path relative to the project root. Because of that, collectedEntrypoints value is an empty array => nothing injected into HTML template.

I think it will be more noticeable that something is wrong if the plugin prints a warning message when a user passes entrypoints param but no entry points are collected/inserted into HTML template.

Currently, it looks like everything is OK, which isn't true and I've had to debug this issue.

Hmm, seems like this issue is the same as #45 :)