@caweb/html-webpack-plugin 1.8.6 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/index.js +6 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -121,7 +121,12 @@ class CAWebHtmlWebpackPlugin extends HtmlWebpackPlugin{
|
|
|
121
121
|
|
|
122
122
|
// if there is a dataFile.site
|
|
123
123
|
if( dataFile.site ){
|
|
124
|
-
|
|
124
|
+
// we remove the title key from the dataFile.site
|
|
125
|
+
// this is to avoid overwriting the title set in the defaultOptions.templateParameters
|
|
126
|
+
if( dataFile.site.title ){
|
|
127
|
+
delete dataFile.site.title;
|
|
128
|
+
}
|
|
129
|
+
|
|
125
130
|
// we merge the defaultOptions.templateParameters, user options.templateParameters, and the dataFile.site
|
|
126
131
|
opts.templateParameters = {
|
|
127
132
|
...defaultOptions.templateParameters,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/html-webpack-plugin",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.8",
|
|
4
4
|
"description": "CAWebPublishing Site Generation HTML Webpack Plugin",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,9 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/CAWebPublishing/webpack/plugins/html#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@caweb/template": "^1.0.1",
|
|
33
32
|
"html-webpack-plugin": "^5.6.3",
|
|
34
33
|
"webpack": "^5.99.9",
|
|
35
34
|
"webpack-cli": "^6.0.1"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@caweb/template": "^1.0.2"
|
|
36
38
|
}
|
|
37
39
|
}
|