@digest/webpack 4.8.1 → 4.9.0-next.1

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.
@@ -108,7 +108,7 @@ const configuration = {
108
108
  [] :
109
109
  [
110
110
  node_path_1.default.join('webpack', 'hot', 'dev-server'),
111
- node_path_1.default.join('webpack-hot-middleware', 'client') + `?path=${node_path_1.default.join(scripts_1.config.baseHref)}hot`
111
+ node_path_1.default.join('webpack-hot-middleware', 'client') + `?path=${node_path_1.default.join(baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/')}hot`
112
112
  ], !scripts_1.config.library &&
113
113
  scripts_1.config.babel &&
114
114
  babelPolyfills ?
@@ -374,7 +374,9 @@ 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({ BASE_HREF: JSON.stringify(baseHrefHtml), BUILD: {
377
+ 'process.env': Object.assign(Object.assign({ BASE_HREF: scripts_1.config.baseHrefHtml ?
378
+ JSON.stringify(scripts_1.config.baseHrefHtml) :
379
+ undefined, BUILD: {
378
380
  DATE: JSON.stringify(new Date().toString())
379
381
  }, NODE_ENV: JSON.stringify(scripts_1.production ?
380
382
  'production' :
@@ -509,7 +511,7 @@ const configuration = {
509
511
  orientation: 'portrait',
510
512
  path: node_path_1.default.join('favicons', '/'),
511
513
  src: scripts_1.config.favicon,
512
- start_url: scripts_1.config.baseHref,
514
+ start_url: baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/',
513
515
  theme_color: '#fff',
514
516
  version: scripts_1.package.version
515
517
  }),
@@ -544,7 +546,7 @@ const configuration = {
544
546
  modifyURLPrefix: {
545
547
  bundle: node_path_1.default.join('.')
546
548
  },
547
- navigateFallback: `${scripts_1.config.baseHref}index.html`,
549
+ navigateFallback: `${baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/'}index.html`,
548
550
  navigateFallbackDenylist: [].concat([
549
551
  /\/bundle\//u,
550
552
  /^\/_/u,
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.1",
5
+ "version": "4.9.0-next.1",
6
6
  "description": "Digested Webpack Configurations",
7
7
  "author": {
8
8
  "name": "wallzero @wallzeroblog",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@digest/scripts": "^4.0.0",
51
- "@swc/core": "^1.7.11",
51
+ "@swc/core": "^1.8.0",
52
52
  "@vue/preload-webpack-plugin": "^2.0.0",
53
53
  "case-sensitive-paths-webpack-plugin": "^2.4.0",
54
54
  "circular-dependency-plugin": "^5.2.2",
@@ -61,29 +61,29 @@
61
61
  "html-loader": "^5.1.0",
62
62
  "html-webpack-harddisk-plugin": "^2.0.0",
63
63
  "html-webpack-link-type-plugin": "^1.1.1",
64
- "html-webpack-plugin": "^5.6.0",
64
+ "html-webpack-plugin": "^5.6.3",
65
65
  "identity-obj-proxy": "^3.0.0",
66
- "mini-css-extract-plugin": "^2.9.0",
66
+ "mini-css-extract-plugin": "^2.9.2",
67
67
  "raw-loader": "^4.0.2",
68
68
  "source-map-loader": "^5.0.0",
69
69
  "stats-webpack-plugin": "~0.7.0",
70
70
  "style-loader": "^3.3.4",
71
71
  "terser-webpack-plugin": "^5.3.10",
72
- "thread-loader": "^4.0.2",
72
+ "thread-loader": "^4.0.4",
73
73
  "url-loader": "^4.1.1",
74
- "webpack": "^5.93.0",
74
+ "webpack": "^5.96.1",
75
75
  "webpack-bundle-analyzer": "^4.10.2",
76
76
  "webpack-cli": "^5.1.4",
77
- "webpack-favicons": "^1.3.8",
77
+ "webpack-favicons": "^1.5.4",
78
78
  "webpack-node-externals": "^3.0.0",
79
79
  "webpack-subresource-integrity": "^5.2.0-rc.1"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@digest/webpack-workbox": "^4.0.0",
83
- "@types/clean-webpack-plugin": "^0.1.3",
83
+ "@types/clean-webpack-plugin": "^2.0.2",
84
84
  "@types/ip": "^1.1.3",
85
85
  "@types/mini-css-extract-plugin": "^2.5.1",
86
- "@types/node": "^22.4.0",
86
+ "@types/node": "^22.9.0",
87
87
  "@types/terser-webpack-plugin": "^5.2.0",
88
88
  "@types/webpack-bundle-analyzer": "^4.7.0",
89
89
  "@types/webpack-env": "^1.18.5"
@@ -93,5 +93,5 @@
93
93
  "build",
94
94
  "hmr"
95
95
  ],
96
- "gitHead": "99560678174c0469e81a01434c803af5a5b208a3"
96
+ "gitHead": "b688a4c51cca87f2d45d389717dd3e879fcde057"
97
97
  }