@caweb/webpack 2.0.2 → 2.0.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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/webpack.config.js +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/webpack",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "CAWebPublishing Webpack Configuration",
5
5
  "main": "webpack.config.js",
6
6
  "files": [
@@ -43,9 +43,9 @@
43
43
  "@wordpress/dependency-extraction-webpack-plugin": "^6.40.0",
44
44
  "@wordpress/postcss-plugins-preset": "^5.40.0",
45
45
  "babel-loader": "^10.0.0",
46
- "copy-webpack-plugin": "^13.0.1",
46
+ "copy-webpack-plugin": "^14.0.0",
47
47
  "css-loader": "^7.1.4",
48
- "css-minimizer-webpack-plugin": "^7.0.4",
48
+ "css-minimizer-webpack-plugin": "^8.0.0",
49
49
  "deepmerge": "^4.3.1",
50
50
  "fast-glob": "^3.3.3",
51
51
  "handlebars": "^4.7.8",
@@ -53,6 +53,7 @@
53
53
  "html-format": "^1.1.7",
54
54
  "html-webpack-plugin": "^5.6.6",
55
55
  "mini-css-extract-plugin": "^2.10.0",
56
+ "minimist": "^1.2.8",
56
57
  "postcss-loader": "^8.2.1",
57
58
  "react-refresh": "^0.18.0",
58
59
  "read-package-up": "^12.0.0",
@@ -61,11 +62,10 @@
61
62
  "source-map-loader": "^5.0.0",
62
63
  "thread-loader": "^4.0.4",
63
64
  "ts-loader": "^9.5.4",
64
- "webpack": "^5.105.2",
65
+ "webpack": "^5.105.3",
65
66
  "webpack-cli": "^6.0.1",
66
67
  "webpack-dev-server": "^5.2.3",
67
- "webpack-merge": "^6.0.1",
68
- "webpack-remove-empty-scripts": "^1.1.1"
68
+ "webpack-merge": "^6.0.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@wordpress/scripts": "^31.5.0",
package/webpack.config.js CHANGED
@@ -18,7 +18,6 @@ import { fileURLToPath } from 'url';
18
18
  // webpack plugins
19
19
  import { merge } from 'webpack-merge';
20
20
  import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
21
- import RemoveEmptyScriptsPlugin from 'webpack-remove-empty-scripts';
22
21
 
23
22
  /**
24
23
  * Internal dependencies
@@ -154,14 +153,6 @@ let webpackConfig = {
154
153
  ]
155
154
  },
156
155
 
157
- /**
158
- * Devtool Configuration
159
- * WordPress by default uses 'source-map' for devtool which affects build and rebuild speed.
160
- * For development we switch to 'eval' which is much faster.
161
- * @see https://webpack.js.org/configuration/devtool/#devtool
162
- */
163
- devtool: isProduction ? 'source-map' : 'eval',
164
-
165
156
  /**
166
157
  * Turn off caching of generated modules and chunks.
167
158
  * @see https://webpack.js.org/configuration/cache/
@@ -209,21 +200,6 @@ let webpackConfig = {
209
200
 
210
201
  },
211
202
 
212
- plugins: [
213
- // we remove empty scripts
214
- new RemoveEmptyScriptsPlugin(),
215
-
216
- // certain files can be skipped when serving
217
- // new HtmlWebpackSkipAssetsPlugin({
218
- // skipAssets: [
219
- // /.*-rtl.css/, // we skip the Right-to-Left Styles
220
- // /css-audit.*/, // we skip the CSSAudit Files
221
- // /a11y.*/, // we skip the A11y Files
222
- // /jshint.*/, // we skip the JSHint Files
223
- // ]
224
- // }),
225
- ],
226
-
227
203
  /**
228
204
  * DevServer is only added during 'serve' command
229
205
  *