Developmint / nuxt-purgecss

Drop superfluous CSS! A neat PurgeCSS wrapper for Nuxt.js
MIT License
479 stars 19 forks source link

Random scroll behavior issue when reloading the page #46

Closed marcfilleul closed 4 years ago

marcfilleul commented 5 years ago

Hi,

I share with you the issue and solution I've found: https://github.com/sgraewe/create-nuxt-tailwind-app/issues/1

Summary:

When using nuxt-purgecss module default settings, the scroll behavior becomes randomly weird when reloading a page.

To avoid this bug, we just need to use postcss mode instead of webpack mode, and to remove Exctract CSS.

manniL commented 4 years ago

This is likely more an extractCSS issue than a purgecss one. The functionality should not be different in both modes.