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

Do not overwrite site config and invalidate Jekyll cache. #9

Merged
merged 2 commits into from
Feb 13, 2021

Conversation

philnash
Copy link
Owner

@@ -95,16 +95,21 @@ def self.compress_file(file_name, extensions: [], replace_file: false)

private

def self.config(site)
config = site.config['gzip'] || {}
Jekyll::Gzip::DEFAULT_CONFIG.merge(config)
Copy link

Choose a reason for hiding this comment

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

Maybe you don't need to merge here, since you're picking default values anyway? So the whole method could be site.config['gzip'] || {}

Copy link
Owner Author

Choose a reason for hiding this comment

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

Agreed!

@philnash philnash merged commit b7c42e8 into main Feb 13, 2021
@philnash
Copy link
Owner Author

Released in 2.5.1

@philnash philnash deleted the dont-overwrite-site-config branch February 13, 2021 01:33
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