webdiscus / html-bundler-webpack-plugin

Renders Eta, EJS, Handlebars, Nunjucks, Pug, Twig templates "out of the box". Uses HTML template as entry point. Resolves source files of scripts, styles, images in HTML. Supports for Vue.
ISC License
119 stars 12 forks source link

Feature request: Give the plugin instance a sensible name #83

Closed davidmurdoch closed 3 months ago

davidmurdoch commented 3 months ago

Feature request

What is motivation or use case for adding/changing the behavior?

When debugging webpack configurations it is helpful for plugins to have sensible names. html-bundler-webpack-plugin just shows Plugin:

image

Describe the solution you'd like

Give the plugin instance a name that describes what it is, like HtmlBundlerWebpackPlugin.

This sort of thing could be considered breaking change, but if you are going to rename the library soon it'd be a great time to introduce this kind of change.

webdiscus commented 3 months ago

Hello @davidmurdoch,

thanks for the constructive suggestion. The instance was named as HtmlBundlerPlugin in the version 3.6.5.

P.S.

I don't plan to rename it soon, while the plugin is still not popular. The purpose of renaming is to distance ourselves from the html-webpack-plugin so that the html-bundler-webpack-plugin is not confused with html-webpack-plugin. The name is similar, but has absolutely other meaning.