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

Support phases and optional dependencies #7

Merged
merged 7 commits into from
Apr 15, 2018

Conversation

cyrilwanner
Copy link
Owner

This is a complete rewrite and resolves #2.
It should get released as v2.0.0 because there are breaking changes and it requires next.js v5.1.x as it depends on features introduced in this version.

  • Supports phases
    • Plugins can only be added in specific phases or excluded from phases
    • Configuration can get overwritten for specific phases
  • Adds an optional helper to only load a plugin in a specific phase
  • Plugins can specify by their own in which phases they should get loaded

@cyrilwanner cyrilwanner changed the title Feature/support phases Support phases and optional dependencies Apr 15, 2018
@cyrilwanner cyrilwanner merged commit 7f4e113 into master Apr 15, 2018
@cyrilwanner cyrilwanner deleted the feature/support-phases branch April 15, 2018 15:25
@snax4a
Copy link

snax4a commented May 23, 2022

@cyrilwanner Is it possible to use optional with env variable check?
For example include bundle analyzer only if process.env.ANALYZE === 'true'

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.

Support next 5.1 phases
2 participants