@spryker/oryx-for-zed 3.0.0 → 3.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ### 3.2.0
4
+ Released on 04.10.2023
5
+
6
+ - Removed the `file-loader` dependency.
7
+ - Adjusted webpack config by migration from `file-loader` to `asset/resource`.
8
+
9
+ ### 3.1.0
10
+ Released on 15.09.2023
11
+
12
+ - Adjusted webpack config by introducing `NodePolyfillPlugin` usage from `node-polyfill-webpack-plugin`.
13
+ - Updated dependencies:
14
+ - `webpack`: `5.81.0` => `5.88.2`
15
+
3
16
  ### 3.0.0
4
17
  Released on 11.05.2023
5
18
 
@@ -5,6 +5,12 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
5
5
  const find = require('./find');
6
6
  const configurePaths = require('./configure-paths');
7
7
 
8
+ let NodePolyfillPlugin;
9
+
10
+ try {
11
+ NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
12
+ } catch (e) {}
13
+
8
14
  async function getConfiguration(settings) {
9
15
  let mode = 'development';
10
16
  let devtool = 'inline-source-map';
@@ -114,23 +120,17 @@ async function getConfiguration(settings) {
114
120
  },
115
121
  {
116
122
  test: /\.(ttf|woff2?|eot|svg|otf)\??(\d*\w*=?\.?)+$/i,
117
- use: [{
118
- loader: 'file-loader',
119
- options: {
120
- name: 'fonts/[name].[ext]',
121
- publicPath: settings.paths.publicPath,
122
- },
123
- }],
123
+ type: 'asset/resource',
124
+ generator: {
125
+ filename: 'fonts/[name][ext]',
126
+ },
124
127
  },
125
128
  {
126
129
  test: /\.(jpe?g|png|gif|svg)\??(\d*\w*=?\.?)+$/i,
127
- use: [{
128
- loader: 'file-loader',
129
- options: {
130
- name: 'img/[name].[ext]',
131
- publicPath: settings.paths.publicPath,
132
- },
133
- }],
130
+ type: 'asset/resource',
131
+ generator: {
132
+ filename: 'img/[name][ext]',
133
+ },
134
134
  },
135
135
  ],
136
136
  },
@@ -172,6 +172,8 @@ async function getConfiguration(settings) {
172
172
  new MiniCssExtractPlugin({
173
173
  filename: `./css/[name].css`,
174
174
  }),
175
+
176
+ NodePolyfillPlugin ? new NodePolyfillPlugin() : null,
175
177
  ],
176
178
  };
177
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spryker/oryx-for-zed",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Spryker ZED frontend automation tool",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,6 @@
25
25
  "css-minimizer-webpack-plugin": "~4.2.2",
26
26
  "dayjs": "~1.11.7",
27
27
  "fast-glob": "~3.2.12",
28
- "file-loader": "~1.1.11",
29
28
  "fs-extra": "~10.1.0",
30
29
  "imports-loader": "~0.8.0",
31
30
  "mini-css-extract-plugin": "~2.7.2",
@@ -36,7 +35,7 @@
36
35
  "sass-loader": "~10.4.1",
37
36
  "style-loader": "~0.23.1",
38
37
  "terser-webpack-plugin": "~5.3.6",
39
- "webpack": "~5.81.0",
38
+ "webpack": "~5.88.2",
40
39
  "yargs": "~13.3.2"
41
40
  },
42
41
  "devDependencies": {