You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a Chrome extension using Vite, Vue.js 3, and PrimeVue. I want to use a PrimeVue theme preset in my project, but the theme isn't being applied in the extension popup.
Here is a screenshot of the popup out of the box, as you can see the button doesn't have the theme style.
This is my main.js
import { createApp } from 'vue';
import App from './App.vue';
import PrimeVue from 'primevue/config';
import Lara from '@primevue/themes/lara';
const app = createApp(App);
app.use(PrimeVue, { theme: { preset: Lara } });
app.mount('#app');
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm developing a Chrome extension using Vite, Vue.js 3, and PrimeVue. I want to use a PrimeVue theme preset in my project, but the theme isn't being applied in the extension popup.
Here is a screenshot of the popup out of the box, as you can see the button doesn't have the theme style.
This is my main.js
This is my vite.config.js
What is the write way in vite.config.js to have it use the preset theme and add it to the CSS in the dist folder?
Beta Was this translation helpful? Give feedback.
All reactions