@shopgate/webpack 7.32.1 → 7.32.2-alpha.10

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 +21 -16
  2. package/webpack.config.js +4 -4
package/package.json CHANGED
@@ -1,35 +1,40 @@
1
1
  {
2
2
  "name": "@shopgate/webpack",
3
- "version": "7.32.1",
3
+ "version": "7.32.2-alpha.10",
4
4
  "description": "The webpack configuration for Shopgate's Engage.",
5
5
  "main": "webpack.config.js",
6
6
  "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/shopgate/pwa.git",
10
+ "directory": "utils/webpack"
11
+ },
7
12
  "dependencies": {
8
- "@pmmmwh/react-refresh-webpack-plugin": "0.5.17",
13
+ "@pmmmwh/react-refresh-webpack-plugin": "0.6.3",
9
14
  "ajv": "^8.17.1",
10
- "babel-loader": "^9.2.1",
15
+ "babel-loader": "^10.1.1",
11
16
  "chalk": "^4.1.2",
12
17
  "color": "^4.2.3",
13
- "compression-webpack-plugin": "^10.0.0",
14
- "css-loader": "^6.11.0",
15
- "css-minimizer-webpack-plugin": "^5.0.1",
16
- "html-webpack-plugin": "^5.6.6",
18
+ "compression-webpack-plugin": "^12.0.0",
19
+ "css-loader": "^7.1.5",
20
+ "css-minimizer-webpack-plugin": "^8.0.0",
21
+ "html-webpack-plugin": "^5.6.8",
17
22
  "import-fresh": "^3.3.1",
18
23
  "intl": "1.2.5",
19
- "lodash": "^4.17.23",
24
+ "lodash": "^4.18.1",
20
25
  "mini-css-extract-plugin": "^2.9.4",
21
26
  "progress-bar-webpack-plugin": "^2.1.0",
22
- "react-refresh": "^0.18.0",
23
- "style-loader": "3.3.4",
27
+ "react-refresh": "^0.19.0",
28
+ "style-loader": "4.0.0",
24
29
  "terser-webpack-plugin": "^5.6.1",
25
- "webpack": "^5.108.4",
26
- "webpack-bundle-analyzer": "^4.10.2",
27
- "webpack-cli": "^5.1.4",
28
- "workbox-webpack-plugin": "6.5.4"
30
+ "webpack": "^5.111.1",
31
+ "webpack-bundle-analyzer": "^5.4.0",
32
+ "webpack-cli": "^7.2.3",
33
+ "workbox-webpack-plugin": "7.4.1"
29
34
  },
30
35
  "devDependencies": {
31
- "@types/lodash": "^4.17.24",
36
+ "@types/lodash": "^4.17.25",
32
37
  "rxjs": "~5.5.12",
33
- "webpack-dev-server": "4.15.2"
38
+ "webpack-dev-server": "6.0.0"
34
39
  }
35
40
  }
package/webpack.config.js CHANGED
@@ -312,18 +312,18 @@ const config = {
312
312
  host: '0.0.0.0',
313
313
  port: process.env.optionsPort,
314
314
  historyApiFallback: true,
315
- proxy: process.env.WEB_BRIDGE ? {
316
- '/api': {
315
+ proxy: process.env.WEB_BRIDGE ? [
316
+ {
317
+ context: ['/api'],
317
318
  target: `http://${ip}:${apiPort}`,
318
319
  changeOrigin: true,
319
320
  pathRewrite: { '^/api': '' },
320
- debug: true,
321
321
  secure: false,
322
322
  cookieDomainRewrite: {
323
323
  '*': '',
324
324
  },
325
325
  },
326
- } : undefined,
326
+ ] : undefined,
327
327
  },
328
328
  optimization: {
329
329
  emitOnErrors: false,