shopify-accelerate-app 1.1.6 → 1.1.7
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
|
@@ -55,9 +55,10 @@ const generateInputCSS = (base_css_path: string, user_css_path: string): string
|
|
|
55
55
|
].join("\n");
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
// Source paths for content detection
|
|
59
|
-
const
|
|
60
|
-
const
|
|
58
|
+
// Source paths for content detection — resolve to absolute so they work from the generated file's location
|
|
59
|
+
const extension_path_raw = process.env.SHOPIFY_ACCELERATE_EXTENSION_PATH ?? "";
|
|
60
|
+
const extension_path_abs = extension_path_raw ? path.resolve(root_dir, extension_path_raw).replace(/\\/g, "/") : "";
|
|
61
|
+
const source_directive = extension_path_abs ? `@source "${extension_path_abs}/**/*.{html,liquid,js,json}";` : "";
|
|
61
62
|
|
|
62
63
|
// Safelist equivalent via @source inline()
|
|
63
64
|
const safelist_prefix = prefix ? `${prefix}:` : "";
|