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

Purge unused styles from Tailwind #2

Open
bhgsbatista opened this issue Oct 28, 2020 · 0 comments
Open

Purge unused styles from Tailwind #2

bhgsbatista opened this issue Oct 28, 2020 · 0 comments

Comments

@bhgsbatista
Copy link

bhgsbatista commented Oct 28, 2020

The lighthouse score of this boilerplate suffers due to the inclusion of the full Tailwind CSS stylesheet.

Changing tailwind.config.js to include paths to purge improves the situation:

module.exports = {
  purge: [
    './components/**/*',
    './pages/**/*'
  ],
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
  future: {
    removeDeprecatedGapUtilities: true,
    purgeLayersByDefault: true,
  },
};
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