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 mergeStyles plugin #1278

Closed
wants to merge 4 commits into from
Closed

Conversation

strarsis
Copy link
Contributor

@strarsis strarsis commented Sep 2, 2020

This PR adds the mergeStyles plugin that merges <style> elements into one,
preserving media queries by the <style> media attribute.

You can already try this feature branch by installing it using this npm command:
npm install github:strarsis/svgo#mergeStyles-plugin
The plugin would also be enabled by default in this PR as it can help with compression by subsequent plugins.

@XhmikosR
Copy link
Contributor

@strarsis can you rebase this and adapt it to the recent code changes?

@strarsis
Copy link
Contributor Author

Still something wrong with the branch. I create a new one.

@strarsis strarsis closed this Feb 27, 2021
@strarsis strarsis mentioned this pull request Feb 27, 2021
@strarsis
Copy link
Contributor Author

@XhmikosR: New PR branch: #1381

@XhmikosR
Copy link
Contributor

You can always do git rebase -i and resolve any conflicts in the future instead of making a new branch/PR :)

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

Successfully merging this pull request may close these issues.

3 participants