Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-minify-font-values

Package Overview
Dependencies
Maintainers
8
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-minify-font-values

Minify font declarations with PostCSS

  • 7.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.7M
decreased by-20.69%
Maintainers
8
Weekly downloads
 
Created

What is postcss-minify-font-values?

The postcss-minify-font-values npm package is designed to optimize font declarations in CSS to ensure they are as short and efficient as possible. It works by minimizing font-weight values, removing duplicate font-family names, and condensing font shorthand declarations where possible.

What are postcss-minify-font-values's main functionalities?

Minifying font-weight values

Converts named font-weight values to their numeric equivalents, reducing the size of the CSS file.

"font-weight: normal;" // Before minification
"font-weight: 400;" // After minification

Removing duplicate font-family names

Eliminates redundant font-family names from the font-family list, making the declaration shorter.

"font-family: Arial, Arial, sans-serif;" // Before minification
"font-family: Arial, sans-serif;" // After minification

Condensing font shorthand declarations

Simplifies font shorthand declarations by removing unnecessary or default values, further reducing CSS size.

"font: italic normal bold 12px/30px Arial, sans-serif;" // Before minification
"font: italic bold 12px/30px Arial, sans-serif;" // After minification

Other packages similar to postcss-minify-font-values

Keywords

FAQs

Package last updated on 24 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc