@caweb/html-webpack-plugin 1.8.7 → 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 CHANGED
@@ -1,3 +1,6 @@
1
+ v1.8.8
2
+ - Removed the title key from the dataFile.site
3
+
1
4
  v1.8.7
2
5
  - Updated npm packages
3
6
 
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.7",
3
+ "version": "1.8.8",
4
4
  "description": "CAWebPublishing Site Generation HTML Webpack Plugin",
5
5
  "main": "index.js",
6
6
  "type": "module",