CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
19 lines
532 B
JavaScript
19 lines
532 B
JavaScript
import path from "node:path";
|
|
import { pathToFileURL } from "node:url";
|
|
import { resolve as importMetaResolve } from "import-meta-resolve";
|
|
let cwdUrlStr;
|
|
async function importPlugin(p) {
|
|
try {
|
|
const importResult2 = await import(p);
|
|
return importResult2.default;
|
|
} catch {
|
|
}
|
|
cwdUrlStr ??= pathToFileURL(path.join(process.cwd(), "package.json")).toString();
|
|
const resolved = importMetaResolve(p, cwdUrlStr);
|
|
const importResult = await import(resolved);
|
|
return importResult.default;
|
|
}
|
|
export {
|
|
importPlugin
|
|
};
|