primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.58k stars 1.23k forks source link

PrimeVue v4 ignores Nuxt configuration settings when building the project #6087

Open Semdevmaster opened 4 months ago

Semdevmaster commented 4 months ago

Describe the bug

I built a production project and see this there image My Nuxt config clearly states that there should be no inline styles image image

It turns out that if I want to use all 80+ components, I will get 160+ style tags on the page?!!

Reproducer

https://stackblitz.com/edit/nuxt-starter-bwjvja?file=nuxt.config.ts

PrimeVue version

4.0.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Mychen3 commented 3 months ago

Yes, I found this issue as well

mertsincan commented 3 months ago

Hi,

Thanks a lot for your report but, these styles are not normal css files. https://github.com/primefaces/primevue/blob/master/packages/primevue/src/menubar/style/MenubarStyle.js#L3 From what I see you are not using @primevue/nuxt-module. In your case,