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

Modify branching logic around purgeCssEnabled #35

Merged
merged 1 commit into from
Nov 20, 2019

Conversation

mwdiaz
Copy link
Contributor

@mwdiaz mwdiaz commented Nov 20, 2019

This switches the behavior from returning early when PurgeCSS is disabled to instead wrap the addition of purgecss-webpack-plugin in the check for purgeCssEnabled returning true. This ensures the Webpack config is always properly passed through any custom webpack function in the Next.js config.

If the project contains a custom `webpack` function, the plugin needs to
ensure that it is called regardless of whether PurgeCSS is enabled.
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.

Thanks! Published in 3.1.2.

@lucleray lucleray merged commit 1753722 into lucleray:master Nov 20, 2019
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

2 participants