shopify-accelerate-app 1.1.0 → 1.1.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/package.json
CHANGED
|
@@ -60,7 +60,12 @@ const generateInputCSS = (base_css_path: string, user_css_path: string): string
|
|
|
60
60
|
const safelist = `@source inline("${safelist_prefix}inset-0 ${safelist_prefix}pointer-events-none [&>*]:${safelist_prefix}pointer-events-auto");`;
|
|
61
61
|
|
|
62
62
|
// Read the base CSS config (theme, variants, utilities, plugins)
|
|
63
|
-
|
|
63
|
+
// Resolve bare package imports to absolute paths so they work from the generated file's location
|
|
64
|
+
const tw_animate_path = path.join(package_root, "node_modules/tw-animate-css/dist/tw-animate.css").replace(/\\/g, "/");
|
|
65
|
+
const base_css = fs.readFileSync(base_css_path, { encoding: "utf-8" }).replace(
|
|
66
|
+
'@import "tw-animate-css"',
|
|
67
|
+
`@import "${tw_animate_path}"`
|
|
68
|
+
);
|
|
64
69
|
|
|
65
70
|
// Read the user's _tailwind.css
|
|
66
71
|
const user_css = fs.readFileSync(user_css_path, { encoding: "utf-8" });
|