@spryker/oryx-for-zed 3.4.5 → 3.5.1
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 +12 -0
- package/lib/settings.js +6 -3
- package/lib/webpack.config.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 3.5.1
|
|
4
|
+
|
|
5
|
+
Released on 05.09.2025
|
|
6
|
+
|
|
7
|
+
- Fix spryker feature path.
|
|
8
|
+
|
|
9
|
+
### 3.5.0
|
|
10
|
+
|
|
11
|
+
Released on 07.04.2025
|
|
12
|
+
|
|
13
|
+
- Add support for a separate entry point compatible with Bootstrap 5.
|
|
14
|
+
|
|
3
15
|
### 3.4.5
|
|
4
16
|
|
|
5
17
|
Released on 10.01.2025
|
package/lib/settings.js
CHANGED
|
@@ -13,7 +13,7 @@ const ecoDir = path.resolve('./vendor/spryker-eco');
|
|
|
13
13
|
const sdkDir = path.resolve('./vendor/spryker-sdk');
|
|
14
14
|
|
|
15
15
|
let bundlesPath = './vendor/spryker/';
|
|
16
|
-
let featuresPath = './vendor/spryker/';
|
|
16
|
+
let featuresPath = './vendor/spryker-feature/';
|
|
17
17
|
let guiFolder = 'gui';
|
|
18
18
|
|
|
19
19
|
if (!fs.existsSync(path.resolve(bundlesPath, guiFolder))) {
|
|
@@ -28,6 +28,9 @@ const bundlesDir = path.resolve(bundlesPath);
|
|
|
28
28
|
const featuresDir = path.resolve(featuresPath);
|
|
29
29
|
const guiPath = path.join(bundlesPath, guiFolder);
|
|
30
30
|
|
|
31
|
+
const isBootstrapLatest = process.env.BOOTSTRAP_VERSION === '5';
|
|
32
|
+
const excludePattern = isBootstrapLatest ? '!**/Zed/**/spryker-zed-gui-commons.entry.js' : '!**/Zed/**/spryker-zed-gui-commons-bootstrap-compatibility.entry.js';
|
|
33
|
+
|
|
31
34
|
const settings = {
|
|
32
35
|
options: {
|
|
33
36
|
isProduction: !!argv.prod,
|
|
@@ -50,11 +53,11 @@ const settings = {
|
|
|
50
53
|
featuresPath,
|
|
51
54
|
},
|
|
52
55
|
|
|
53
|
-
runtimeEntryName: 'spryker-zed-gui-commons',
|
|
56
|
+
runtimeEntryName: isBootstrapLatest ? 'spryker-zed-gui-commons-bootstrap-compatibility' : 'spryker-zed-gui-commons',
|
|
54
57
|
|
|
55
58
|
entry: {
|
|
56
59
|
dirs: [bundlesDir, ecoDir, sdkDir, featuresDir],
|
|
57
|
-
patterns: ['**/Zed/**/*.entry.js'],
|
|
60
|
+
patterns: ['**/Zed/**/*.entry.js', excludePattern],
|
|
58
61
|
description: 'looking for entry points...',
|
|
59
62
|
defineName: p => path.basename(p, '.entry.js'),
|
|
60
63
|
},
|
package/lib/webpack.config.js
CHANGED
|
@@ -115,9 +115,9 @@ async function getConfiguration(settings) {
|
|
|
115
115
|
options: {
|
|
116
116
|
url: {
|
|
117
117
|
filter: (url, _resourcePath) => {
|
|
118
|
-
|
|
118
|
+
return !(url.includes('assets/img/') || url.includes('bundles/images/'));
|
|
119
119
|
},
|
|
120
|
-
|
|
120
|
+
},
|
|
121
121
|
importLoaders: 1,
|
|
122
122
|
},
|
|
123
123
|
},
|