Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
build-plugin-minify-classname
Advanced tools
Minify your css modules classnames to get a smaller bundle size
{
"plugins": [
// ...
"build-plugin-minify-classname"
]
}
If we have a css modules file named src/components/button/index.module.scss
Suppose there are many selectors in it
.foo {}
.bar {}
// ...
The result in miniapp projects
.a-a_mc {}
.b-a_mc {}
// ...
The result in other projects
.a54755bb1 {}
.b54755bb1 {}
// ...
As 54755bb1
here is repeated many times, it's better for gzip
-like algorithm to generate a smaller size bundle
FAQs
minify css modules classname
The npm package build-plugin-minify-classname receives a total of 6 weekly downloads. As such, build-plugin-minify-classname popularity was classified as not popular.
We found that build-plugin-minify-classname demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.