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

Update PostCSS to v8.4.49 and improve code readability #140

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Vhivi
Copy link

@Vhivi Vhivi commented Jan 3, 2025

This pull request includes several changes to improve code readability and update dependencies. The most important changes include adding braces to single-line if statements, refactoring PostCSS plugin definitions, and updating the postcss dependency version.

Code readability improvements:

  • Added braces to single-line if statements in lib/compileTemplate.ts, lib/parse.ts, lib/styleProcessors/index.ts, lib/templateCompilerModules/assetUrl.ts, and lib/templateCompilerModules/srcset.ts to improve readability. [1] [2] [3] [4] [5] [6]

PostCSS plugin refactoring:

  • Refactored PostCSS plugin definitions in lib/stylePlugins/scoped.ts and lib/stylePlugins/trim.ts to use the new plugin API format. [1] [2] [3]

Dependency updates:

  • Updated postcss dependency to version 8.4.49 in package.json and moved it to peerDependencies. [1] [2]

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

1 participant