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

Improve code quality in css-url-variables plugin #756

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

MidhunSureshR
Copy link
Contributor

  • Fixes a typo in vite.common-config.js which was preventing the icons section in the manifest from being populated.
  • Refactor away global variables. This was causing variables to be repeated in the css file.

This was causing the icons section to be omitted from the source section
of the manifest.
This was causing icons to be repeated in the css-file
@MidhunSureshR MidhunSureshR linked an issue Jun 17, 2022 that may be closed by this pull request
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Thanks, looking good!

@@ -20,11 +20,9 @@ const valueParser = require("postcss-value-parser");
* This plugin extracts content inside url() into css variables and adds the variables to the root section.
Copy link
Contributor

Choose a reason for hiding this comment

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

Related to #745

@MidhunSureshR MidhunSureshR merged commit c050ade into master Jun 20, 2022
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.

Scope variables in Custom PostCSS plugins to each file processed
3 participants