primevue-mirror/modules/nuxt-primevue/runtime/plugin.server.js
2024-06-05 12:10:27 +03:00

13 lines
399 B
JavaScript

// @ts-expect-error
import { styles, themes } from '#primevue-style';
//import { useRuntimeConfig } from '#imports';
const defineNitroPlugin = (def) => def;
export default defineNitroPlugin(async (nitroApp) => {
nitroApp.hooks.hook('render:html', (html) => {
html.head.push(styles);
html.head.push(themes);
//html.htmlAttrs.push('class="p-dark"'); // @todo
});
});