Skip to content

Commit 090acad

Browse files
committed
fix: set plugin instance name as HtmlBundlerPlugin instead of Plugin
1 parent 92a0f25 commit 090acad

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change log
22

3+
## 3.6.5 (2024-03-19)
4+
5+
- fix: define the unique instance name for the plugin as `HtmlBundlerPlugin` instead of `Plugin`
6+
37
## 3.6.4 (2024-03-17)
48

59
- fix: catching of the error when a peer dependency for a Pug filter is not installed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-bundler-webpack-plugin",
3-
"version": "3.6.4",
3+
"version": "3.6.5",
44
"description": "HTML bundler plugin for webpack handles a template as an entry point, extracts CSS and JS from their sources referenced in HTML, supports template engines like Eta, EJS, Handlebars, Nunjucks.",
55
"keywords": [
66
"html",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const loader = require.resolve('./Loader');
1010
* @typedef {PluginOptions} HtmlBundlerPluginOptions
1111
*/
1212

13-
class Plugin extends AssetCompiler {
13+
class HtmlBundlerPlugin extends AssetCompiler {
1414
/**
1515
* @param {HtmlBundlerPluginOptions|{}} options
1616
*/
@@ -46,5 +46,5 @@ class Plugin extends AssetCompiler {
4646
}
4747
}
4848

49-
module.exports = Plugin;
49+
module.exports = HtmlBundlerPlugin;
5050
module.exports.loader = loader;

test/manual/watch-dependencies/webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const HtmlBundlerPlugin = require('html-bundler-webpack-plugin');
33

4-
module.exports = {
4+
const config = {
55
mode: 'production',
66
stats: 'minimal',
77

@@ -64,3 +64,7 @@ module.exports = {
6464
},
6565
},
6666
};
67+
68+
//console.log(config);
69+
70+
module.exports = config;

0 commit comments

Comments
 (0)