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 Default directives #81

Merged
merged 4 commits into from
Apr 28, 2021
Merged

Add Default directives #81

merged 4 commits into from
Apr 28, 2021

Conversation

JonasKruckenberg
Copy link
Owner

This adds support for default directives, enabling a workflow similar to traditional image optimization plugins.
defaultDirectives can either be an object of directives or a function returning an object.

NOTE: Directives specified as query parameters will always take precedence.

This feature lets you specify directives that should be applied by default to every image. It can also be a function that returns an object of directives.
@JonasKruckenberg JonasKruckenberg merged commit 176fa6d into main Apr 28, 2021
@JonasKruckenberg JonasKruckenberg deleted the default-directives branch May 14, 2021 15:55
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.

1 participant