@digest/webpack 4.6.1 → 4.7.0

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.
@@ -81,6 +81,11 @@ const generateName = (extension, chunkName) => {
81
81
  }
82
82
  return `[name].${extension}`;
83
83
  };
84
+ const baseHrefHtml = scripts_1.config.baseHref ?
85
+ scripts_1.config.baseHref.replace(/\/?$/u, '/') :
86
+ (scripts_1.config.baseHrefHtml ?
87
+ scripts_1.config.baseHrefHtml.replace(/\/?$/u, '/') :
88
+ '/');
84
89
  const configuration = {
85
90
  cache: cache ?
86
91
  {
@@ -449,9 +454,7 @@ const configuration = {
449
454
  [
450
455
  new html_webpack_plugin_1.default({
451
456
  alwaysWriteToDisk: true,
452
- baseHref: scripts_1.config.baseHref ?
453
- scripts_1.config.baseHref.replace(/\/?$/u, '/') :
454
- '/',
457
+ baseHref: baseHrefHtml,
455
458
  filename: node_path_1.default.join('..', 'index.html'),
456
459
  inject: 'body',
457
460
  minify: scripts_1.production ?
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/webpack",
3
3
  "title": "Webpack Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "4.6.1",
5
+ "version": "4.7.0",
6
6
  "description": "Digested Webpack Configurations",
7
7
  "author": {
8
8
  "name": "wallzero @wallzeroblog",
@@ -93,5 +93,5 @@
93
93
  "build",
94
94
  "hmr"
95
95
  ],
96
- "gitHead": "c2b4dd69ea7244c4c8aebedefdf51689e3ea74f7"
96
+ "gitHead": "e9a1c579f45f8bf9eba06a0a66176f230a18cd00"
97
97
  }