primevue-mirror/modules/nuxt-primevue/runtime/plugin.server.js

14 lines
405 B
JavaScript
Raw Normal View History

// @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) => {
2024-06-01 07:58:24 +00:00
html.head.unshift(styles);
html.head.unshift(themes);
2024-03-05 09:22:33 +00:00
//html.htmlAttrs.push('class="p-dark"'); // @todo
});
});