@shopgate/webpack 7.32.0-beta.1 → 7.32.0-beta.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/webpack",
3
- "version": "7.32.0-beta.1",
3
+ "version": "7.32.0-beta.11",
4
4
  "description": "The webpack configuration for Shopgate's Engage.",
5
5
  "main": "webpack.config.js",
6
6
  "license": "Apache-2.0",
@@ -21,8 +21,8 @@
21
21
  "progress-bar-webpack-plugin": "^2.1.0",
22
22
  "react-refresh": "^0.18.0",
23
23
  "style-loader": "3.3.4",
24
- "terser-webpack-plugin": "^5.3.16",
25
- "webpack": "^5.102.1",
24
+ "terser-webpack-plugin": "^5.6.1",
25
+ "webpack": "^5.108.4",
26
26
  "webpack-bundle-analyzer": "^4.10.2",
27
27
  "webpack-cli": "^5.1.4",
28
28
  "workbox-webpack-plugin": "6.5.4"
@@ -16,6 +16,21 @@
16
16
  <link rel="stylesheet" href="<%= css %>">
17
17
  <% }) %>
18
18
  <% } %>
19
+ <%
20
+ // Anchors for the new theming system. Layers must apply in a fixed order:
21
+ // emotion-insertion-point (all tss styles) -> font css -> theme css -> preview css.
22
+ //
23
+ // TSS styles carry defaults generated during theme initialization.
24
+ // The font css files (the typography app settings, loaded by loadFontCss) override them.
25
+ // The theme css file (the themeCssUrl setting, loaded by loadThemeCss) overrides both.
26
+ // The admin preview (FrontendSettingsPreviewBridge) overrides all for live customizations.
27
+ //
28
+ // All of them have the same specificity, so document order is decisive.
29
+ // Declaring the insertion positions here makes the order structural instead of timing-based.
30
+ %>
31
+ <meta name="font-css-insertion-point" content="" />
32
+ <meta name="theme-css-insertion-point" content="" />
33
+ <meta name="preview-css-insertion-point" content="" />
19
34
  <% const scripts = htmlWebpackPlugin.files.js; %>
20
35
  <% const vendor = scripts.find(s => s.includes('vendor')); %>
21
36
  <% if (vendor) { %><script src="<%= vendor %>"></script><% } %>