Gathering detailed insights and metrics for postcss-merge-rules-plus
Gathering detailed insights and metrics for postcss-merge-rules-plus
npm install postcss-merge-rules-plus
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
60,365
Last Day
20
Last Week
81
Last Month
285
Last Year
19,211
MIT License
2 Stars
4 Commits
4 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Apr 19, 2024
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
postcss-merge-rules-plus@2.0.0
Unpacked Size
46.41 kB
Size
13.07 kB
File Count
15
NPM Version
8.1.2
Node Version
16.13.1
Cumulative downloads
Total Downloads
Last Day
-4.8%
20
Compared to previous day
Last Week
35%
81
Compared to previous week
Last Month
-17.4%
285
Compared to previous month
Last Year
-35.7%
19,211
Compared to previous year
1
PostCSS plugin for combining css rules (selectors) that have fully/partially identical declarations.
1.a { position: absolute; display: block; color: red; background: pink; } 2.b { position: absolute; display: block; } 3.c { position: absolute; display: inline; color: red; background: pink; opacity: 0.5; } 4.d { position: absolute; display: block; opacity: 0.5; z-index: 2; text-align: center; }
1.a, .b, .c, .d { position: absolute; } 2.a, .b, .d { display: block; } 3.a, .c { color: red; background: pink; } 4.c, .d { opacity: 0.5; } 5.c { display: inline; } 6.d { z-index: 2; text-align: center; }
Step 1: Install plugin:
1npm install --save-dev postcss postcss-merge-rules-plus
Step 2: Check you project for existed PostCSS config: postcss.config.js
in the project root, "postcss"
section in package.json
or postcss
in bundle config.
If you do not use PostCSS, add it according to official docs and set this plugin in settings.
Step 3: Add the plugin to plugins list:
1module.exports = { 2 plugins: [ 3+ require('postcss-merge-rules-plus'), 4 require('autoprefixer') 5 ] 6}
1import { src, dest } from 'gulp'; 2import gutil from 'gulp-util'; 3import postcss from 'gulp-postcss'; 4import mergeRulePlus from 'postcss-merge-rules-plus'; 5 6 7 8src('test3.css') 9.pipe( 10 postcss(/*plugins:*/[ 11 mergeRulePlus() 12 ]) 13) 14.on('error', gutil.log) 15.pipe(dest('test/')) 16;
A lot of coffee has been spent for making this plugins. Please buy me a cup of coffee to support me continue to develop & improve this application. Visit: ko-fi.com
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-03-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More