Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Styles fail to load in combination with PurgeCSS #90

Open
Sergix opened this issue May 20, 2021 · 0 comments
Open

Styles fail to load in combination with PurgeCSS #90

Sergix opened this issue May 20, 2021 · 0 comments

Comments

@Sergix
Copy link

Sergix commented May 20, 2021

The stylesheet fails to inject on nuxt generate with target: static when used with TailwindCSS/PurgeCSS. A workaround is to load the stylesheet via unpkg:

nuxt.config.js

export default {
  link: [
    {
      rel: 'stylesheet',
      href: 'https://unpkg.com/leaflet/dist/leaflet.css'
    }
  ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant