@shopgate/webpack 7.32.0-beta.3 → 7.32.0-beta.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.
- package/package.json +1 -1
- package/templates/default.ejs +13 -0
package/package.json
CHANGED
package/templates/default.ejs
CHANGED
|
@@ -16,6 +16,19 @@
|
|
|
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) -> theme css -> preview css.
|
|
22
|
+
//
|
|
23
|
+
// TSS styles carry defaults generated during theme initialization.
|
|
24
|
+
// The theme css file (the themeCssUrl setting, loaded by loadThemeCss) overrides them.
|
|
25
|
+
// The admin preview (FrontendSettingsPreviewBridge) overrides both for live customizations.
|
|
26
|
+
//
|
|
27
|
+
// All three have the same specificity, so document order is decisive.
|
|
28
|
+
// Declaring both insertion positions here makes the order structural instead of timing-based.
|
|
29
|
+
%>
|
|
30
|
+
<meta name="theme-css-insertion-point" content="" />
|
|
31
|
+
<meta name="preview-css-insertion-point" content="" />
|
|
19
32
|
<% const scripts = htmlWebpackPlugin.files.js; %>
|
|
20
33
|
<% const vendor = scripts.find(s => s.includes('vendor')); %>
|
|
21
34
|
<% if (vendor) { %><script src="<%= vendor %>"></script><% } %>
|