@digest/webpack 4.8.0 → 4.8.2
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/dist/webpack.config.js +4 -4
- package/package.json +2 -2
package/dist/webpack.config.js
CHANGED
|
@@ -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(
|
|
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,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({ BASE_HREF: baseHrefHtml, BUILD: {
|
|
377
|
+
'process.env': Object.assign(Object.assign({ BASE_HREF: JSON.stringify(baseHrefHtml), BUILD: {
|
|
378
378
|
DATE: JSON.stringify(new Date().toString())
|
|
379
379
|
}, NODE_ENV: JSON.stringify(scripts_1.production ?
|
|
380
380
|
'production' :
|
|
@@ -509,7 +509,7 @@ const configuration = {
|
|
|
509
509
|
orientation: 'portrait',
|
|
510
510
|
path: node_path_1.default.join('favicons', '/'),
|
|
511
511
|
src: scripts_1.config.favicon,
|
|
512
|
-
start_url:
|
|
512
|
+
start_url: baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/',
|
|
513
513
|
theme_color: '#fff',
|
|
514
514
|
version: scripts_1.package.version
|
|
515
515
|
}),
|
|
@@ -544,7 +544,7 @@ const configuration = {
|
|
|
544
544
|
modifyURLPrefix: {
|
|
545
545
|
bundle: node_path_1.default.join('.')
|
|
546
546
|
},
|
|
547
|
-
navigateFallback: `${
|
|
547
|
+
navigateFallback: `${baseHrefHtml !== null && baseHrefHtml !== void 0 ? baseHrefHtml : '/'}index.html`,
|
|
548
548
|
navigateFallbackDenylist: [].concat([
|
|
549
549
|
/\/bundle\//u,
|
|
550
550
|
/^\/_/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.
|
|
5
|
+
"version": "4.8.2",
|
|
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": "
|
|
96
|
+
"gitHead": "617ecd6370c4c47aa1ef6e3fc1b7bf78bea257ca"
|
|
97
97
|
}
|