Skip to content

How to add third party package to content? #188

Description

@liborjelinek

Despite the docs mention to Don't forget to add paths to pages and components that are not part the common folders (e.g. third party packages), I don't know where and how :-)

I am trying to purge unused styles from PrimeVue and PrimeFlex libraries it if matters.

In default state, nuxt-purgecss deletes almost everything. I suppose I need to append PrimeVue and PrimeFlex packages to PurgeCSS content settings...

I tried in the nuxt.config.ts

modules: [
    "@vueuse/nuxt",
    "@nuxt/content",
    "nuxt-simple-sitemap",
    ["nuxt-purgecss", {
       content: ["...???..."]
     }],
  ],

almost everything instead of ...???..., e.g. node_modules/primevue/**/*.{vue,jsx?,tsx?}, primevue/**/*.{vue,jsx?,tsx?}, etc.

Safelisting is not an option, because PrimeFlex nor PrimeVue has no common CSS classes prefix like Vuetify, etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions