@digest/webpack 3.3.0 → 3.3.4

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.
@@ -12,6 +12,7 @@ const preload_webpack_plugin_1 = __importDefault(require("@vue/preload-webpack-p
12
12
  const case_sensitive_paths_webpack_plugin_1 = __importDefault(require("case-sensitive-paths-webpack-plugin"));
13
13
  const circular_dependency_plugin_1 = __importDefault(require("circular-dependency-plugin"));
14
14
  const clean_terminal_webpack_plugin_1 = __importDefault(require("clean-terminal-webpack-plugin"));
15
+ const clean_webpack_plugin_1 = require("clean-webpack-plugin");
15
16
  const compression_webpack_plugin_1 = __importDefault(require("compression-webpack-plugin"));
16
17
  const css_minimizer_webpack_plugin_1 = __importDefault(require("css-minimizer-webpack-plugin"));
17
18
  const duplicate_package_checker_webpack_plugin_1 = __importDefault(require("duplicate-package-checker-webpack-plugin"));
@@ -164,7 +165,7 @@ const configuration = {
164
165
  [] :
165
166
  [
166
167
  path_1.default.join('webpack', 'hot', 'dev-server'),
167
- path_1.default.join('webpack-hot-middleware', 'client')
168
+ path_1.default.join('webpack-hot-middleware', 'client') + `?path=${path_1.default.join(scripts_1.default.baseHref)}hot`
168
169
  ], !scripts_1.default.library && scripts_1.default.babelPolyfills ?
169
170
  babelPolyfills :
170
171
  [], scripts_1.default.library || !scripts_1.default.polyfills ?
@@ -382,12 +383,8 @@ const configuration = {
382
383
  libraryTarget: 'umd',
383
384
  path: scripts_1.default.staticPath,
384
385
  publicPath: scripts_1.default.library ?
385
- scripts_1.default.production ?
386
- './' :
387
- '/' :
388
- scripts_1.default.production ?
389
- './bundle/' :
390
- '/bundle/',
386
+ './' :
387
+ './bundle/',
391
388
  umdNamedDefine: true
392
389
  },
393
390
  performance: {
@@ -455,6 +452,7 @@ const configuration = {
455
452
  })
456
453
  ] :
457
454
  [
455
+ new clean_webpack_plugin_1.CleanWebpackPlugin(),
458
456
  new webpack_1.HotModuleReplacementPlugin()
459
457
  ], !scripts_1.default.production && scripts_1.default.webpackReact ?
460
458
  [
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/webpack",
3
3
  "title": "Webpack Digest",
4
4
  "license": "GPL-3.0",
5
- "version": "3.3.0",
5
+ "version": "3.3.4",
6
6
  "description": "Digested Webpack Configurations",
7
7
  "author": {
8
8
  "name": "wallzero @wallzeroblog",
@@ -40,14 +40,15 @@
40
40
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
41
41
  },
42
42
  "dependencies": {
43
- "@digest/scripts": "^3.3.0",
43
+ "@digest/scripts": "^3.3.4",
44
44
  "@vue/preload-webpack-plugin": "^2.0.0",
45
45
  "case-sensitive-paths-webpack-plugin": "^2.4.0",
46
46
  "circular-dependency-plugin": "^5.2.2",
47
47
  "clean-terminal-webpack-plugin": "^3.0.0",
48
+ "clean-webpack-plugin": "^4.0.0",
48
49
  "compression-webpack-plugin": "^9.0.1",
49
50
  "css-loader": "^6.5.1",
50
- "css-minimizer-webpack-plugin": "^3.1.4",
51
+ "css-minimizer-webpack-plugin": "^3.2.0",
51
52
  "duplicate-package-checker-webpack-plugin": "^3.0.0",
52
53
  "html-loader": "^3.0.1",
53
54
  "html-webpack-harddisk-plugin": "^2.0.0",
@@ -63,16 +64,17 @@
63
64
  "terser-webpack-plugin": "^5.2.5",
64
65
  "thread-loader": "^3.0.4",
65
66
  "url-loader": "^4.1.1",
66
- "webpack": "^5.64.1",
67
+ "webpack": "^5.64.4",
67
68
  "webpack-bundle-analyzer": "^4.5.0",
68
69
  "webpack-cli": "^4.9.1",
69
70
  "webpack-node-externals": "^3.0.0",
70
71
  "webpack-subresource-integrity": "^5.0.0-rc.1"
71
72
  },
72
73
  "devDependencies": {
74
+ "@types/clean-webpack-plugin": "^0.1.3",
73
75
  "@types/ip": "^1.1.0",
74
76
  "@types/mini-css-extract-plugin": "^2.4.0",
75
- "@types/node": "^16.11.7",
77
+ "@types/node": "^16.11.11",
76
78
  "@types/terser-webpack-plugin": "^5.2.0",
77
79
  "@types/webpack-bundle-analyzer": "^4.4.1",
78
80
  "@types/webpack-env": "^1.16.3",
@@ -83,5 +85,5 @@
83
85
  "build",
84
86
  "hmr"
85
87
  ],
86
- "gitHead": "bfd71712ae299e29d5b19b9862dfe696dae6b2f8"
88
+ "gitHead": "9d4de3a9c295ffa38a7bf06217fd8955528fd9ee"
87
89
  }