Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and document purgeCssEnabled option #20

Merged
merged 5 commits into from
Jun 25, 2019

Conversation

AlexVipond
Copy link
Contributor

Adds purgeCssEnabled, a new option that allows you to control whether or not PurgeCSS is enabled based on build environment (development/production and server-side/client-side). Inspired by the enabled option from nuxt-purgecss.

Super useful for developers who design in the browser using atomic CSS frameworks like Tailwind, and therefore need all CSS classes available in the development build.

nuxt-purgecss actually disables PurgeCSS for dev and server environments by default, which is my preference, but I wrote this pull request to keep PurgeCSS enabled by default so that this isn't a breaking change.

Copy link
Owner

@lucleray lucleray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙏This is great! I added some suggestions for the docs.

readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
AlexVipond and others added 2 commits June 25, 2019 14:13
@AlexVipond
Copy link
Contributor Author

Good suggestions, I just finished updating 👍

@lucleray lucleray merged commit 38d876e into lucleray:master Jun 25, 2019
@lucleray
Copy link
Owner

lucleray commented Jun 25, 2019

Thanks! Published in 3.1.0.

@millette
Copy link

I would suggest disabling it automatically in dev mode with the next major release (since it's a breaking change).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants