@digest/webpack 4.8.0-beta.1 → 4.8.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.
@@ -85,7 +85,7 @@ const baseHrefHtml = scripts_1.config.baseHrefHtml ?
85
85
  scripts_1.config.baseHrefHtml.replace(/\/?$/u, '/') :
86
86
  (scripts_1.config.baseHref ?
87
87
  scripts_1.config.baseHref.replace(/\/?$/u, '/') :
88
- '/');
88
+ undefined);
89
89
  const configuration = {
90
90
  cache: cache ?
91
91
  {
@@ -374,7 +374,7 @@ const configuration = {
374
374
  new case_sensitive_paths_webpack_plugin_1.default(),
375
375
  new webpack_1.DefinePlugin({
376
376
  __DEV__: !scripts_1.production,
377
- 'process.env': Object.assign(Object.assign({ BUILD: {
377
+ 'process.env': Object.assign(Object.assign({ BASE_HREF: baseHrefHtml, BUILD: {
378
378
  DATE: JSON.stringify(new Date().toString())
379
379
  }, NODE_ENV: JSON.stringify(scripts_1.production ?
380
380
  'production' :
@@ -454,7 +454,7 @@ const configuration = {
454
454
  [
455
455
  new html_webpack_plugin_1.default({
456
456
  alwaysWriteToDisk: true,
457
- baseHref: baseHrefHtml,
457
+ baseHref: baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/',
458
458
  filename: node_path_1.default.join('..', 'index.html'),
459
459
  inject: 'body',
460
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.8.0-beta.1",
5
+ "version": "4.8.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": "db93ea7c102c344838eb3074e1da7e3dde0837e5"
96
+ "gitHead": "d15d6cc75b3e47f179f6ad206b48926d429742ec"
97
97
  }