diff --git a/plugins/ssrStyles.tsx b/plugins/ssrStyles.tsx new file mode 100644 index 0000000..09c0827 --- /dev/null +++ b/plugins/ssrStyles.tsx @@ -0,0 +1,42 @@ +import { writeFileSync } from "fs"; +import { extractStyle } from "ant-design-vue/lib/_util/static-style-extract"; +import { ConfigProvider, theme } from "ant-design-vue"; + +const css = extractStyle((node) => ( + <> + + {node} + + + {node} + + +)); + +export default defineNitroPlugin((nitro) => { + nitro.hooks.hook("render:html", (html) => { + html.head.push(``); + }); +});