@digest/webpack 4.0.1 → 4.0.3
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 +6 -12
- package/package.json +10 -10
package/dist/webpack.config.js
CHANGED
|
@@ -28,10 +28,13 @@ const webpack_node_externals_1 = __importDefault(require("webpack-node-externals
|
|
|
28
28
|
const webpack_subresource_integrity_1 = require("webpack-subresource-integrity");
|
|
29
29
|
const { cache } = scripts_1.config;
|
|
30
30
|
let GenerateSW;
|
|
31
|
-
|
|
31
|
+
let WorkboxEntry;
|
|
32
|
+
if (!scripts_1.config.library &&
|
|
33
|
+
scripts_1.config.pwa &&
|
|
32
34
|
scripts_1.config.webpackWorkbox) {
|
|
33
35
|
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
|
|
34
36
|
GenerateSW = WorkboxWebpackPlugin.GenerateSW;
|
|
37
|
+
WorkboxEntry = require.resolve('@digest/webpack-workbox');
|
|
35
38
|
}
|
|
36
39
|
let babelPolyfills = null;
|
|
37
40
|
if (scripts_1.config.babel &&
|
|
@@ -43,11 +46,6 @@ if (scripts_1.config.eslint &&
|
|
|
43
46
|
scripts_1.config.webpackESLint) {
|
|
44
47
|
ESLintPlugin = require('eslint-webpack-plugin');
|
|
45
48
|
}
|
|
46
|
-
let babelPreset = null;
|
|
47
|
-
if (scripts_1.config.babel &&
|
|
48
|
-
scripts_1.config.babelPreset) {
|
|
49
|
-
babelPreset = require.resolve('@digest/babel-polyfills');
|
|
50
|
-
}
|
|
51
49
|
let angularPolyfills = null;
|
|
52
50
|
if (scripts_1.config.angular &&
|
|
53
51
|
scripts_1.config.webpackAngular) {
|
|
@@ -202,18 +200,14 @@ const configuration = {
|
|
|
202
200
|
node_path_1.default.join('webpack-hot-middleware', 'client') + `?path=${node_path_1.default.join(scripts_1.config.baseHref)}hot`
|
|
203
201
|
], !scripts_1.config.library &&
|
|
204
202
|
scripts_1.config.babel &&
|
|
205
|
-
babelPreset ?
|
|
206
|
-
babelPreset :
|
|
207
|
-
[], !scripts_1.config.library &&
|
|
208
|
-
scripts_1.config.babel &&
|
|
209
203
|
babelPolyfills ?
|
|
210
204
|
babelPolyfills :
|
|
211
205
|
[], !scripts_1.config.library &&
|
|
212
206
|
scripts_1.config.angular &&
|
|
213
207
|
angularPolyfills ?
|
|
214
208
|
angularPolyfills :
|
|
215
|
-
[], !scripts_1.config.library &&
|
|
216
|
-
|
|
209
|
+
[], !scripts_1.config.library && WorkboxEntry && scripts_1.production ?
|
|
210
|
+
WorkboxEntry :
|
|
217
211
|
[], [
|
|
218
212
|
scripts_1.config.context
|
|
219
213
|
])
|
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.0.
|
|
5
|
+
"version": "4.0.3",
|
|
6
6
|
"description": "Digested Webpack Configurations",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "wallzero @wallzeroblog",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"clean": "rimraf node_modules dist package-lock.json npm-debug.log"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@digest/scripts": "^4.0.
|
|
45
|
-
"@swc/core": "^1.3.
|
|
44
|
+
"@digest/scripts": "^4.0.3",
|
|
45
|
+
"@swc/core": "^1.3.7",
|
|
46
46
|
"@vue/preload-webpack-plugin": "^2.0.0",
|
|
47
47
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
48
48
|
"circular-dependency-plugin": "^5.2.2",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"clean-webpack-plugin": "^4.0.0",
|
|
51
51
|
"compression-webpack-plugin": "^10.0.0",
|
|
52
52
|
"css-loader": "^6.7.1",
|
|
53
|
-
"css-minimizer-webpack-plugin": "^4.
|
|
53
|
+
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
54
54
|
"duplicate-package-checker-webpack-plugin": "^3.0.0",
|
|
55
|
-
"html-loader": "^4.
|
|
55
|
+
"html-loader": "^4.2.0",
|
|
56
56
|
"html-webpack-harddisk-plugin": "^2.0.0",
|
|
57
57
|
"html-webpack-link-type-plugin": "^1.1.1",
|
|
58
58
|
"html-webpack-plugin": "^5.5.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"ip": "^1.1.8",
|
|
61
61
|
"mini-css-extract-plugin": "^2.6.1",
|
|
62
62
|
"raw-loader": "^4.0.2",
|
|
63
|
-
"source-map-loader": "^4.0.
|
|
63
|
+
"source-map-loader": "^4.0.1",
|
|
64
64
|
"stats-webpack-plugin": "~0.7.0",
|
|
65
65
|
"style-loader": "^3.3.1",
|
|
66
66
|
"terser-webpack-plugin": "^5.3.6",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"webpack-subresource-integrity": "^5.1.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@digest/webpack-workbox": "^4.0.
|
|
77
|
+
"@digest/webpack-workbox": "^4.0.3",
|
|
78
78
|
"@types/clean-webpack-plugin": "^0.1.3",
|
|
79
79
|
"@types/ip": "^1.1.0",
|
|
80
80
|
"@types/mini-css-extract-plugin": "^2.5.1",
|
|
81
|
-
"@types/node": "^18.
|
|
81
|
+
"@types/node": "^18.8.5",
|
|
82
82
|
"@types/terser-webpack-plugin": "^5.2.0",
|
|
83
|
-
"@types/webpack-bundle-analyzer": "^4.
|
|
83
|
+
"@types/webpack-bundle-analyzer": "^4.6.0",
|
|
84
84
|
"@types/webpack-env": "^1.18.0"
|
|
85
85
|
},
|
|
86
86
|
"keywords": [
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"build",
|
|
89
89
|
"hmr"
|
|
90
90
|
],
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "55b59e140bc695f1837c90938564f1ca2f5830b2"
|
|
92
92
|
}
|