
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
purgecss-with-wordpress
Advanced tools
Based on the gist made by @frnwtr, purgecss-with-wordpress
is a set of templates for
Wordpress CMS.
You need to install PurgeCSS first.
Install purgecss-with-wordpress
:
npm i --save-dev purgecss-with-wordpress
import PurgeCSS from 'purgecss'
import purgecssWordpress from 'purgecss-with-wordpress'
const purgeCSSResults = await new PurgeCSS().purge({
content: ['**/*.html'],
css: ['**/*.css'],
safelist: purgecssWordpress.safelist,
safelistPatterns: purgecssWordpress.safelistPatterns
})
If you have additional classes you want to include in either of the safelist
or safelistPatterns
, you can include them using the spread operator:
safelist: [
...purgecssWordpress.safelist,
'red',
'blue',
],
safelistPatterns: [
...purgecssWordpress.safelistPatterns,
/^red/,
/blue$/,
]
Purgecss-with-wordpress use SemVer for versioning.
Purgecss-with-wordpress is based on the gist made by @frnwtr
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
PurgeCSS with wordpress
The npm package purgecss-with-wordpress receives a total of 664 weekly downloads. As such, purgecss-with-wordpress popularity was classified as not popular.
We found that purgecss-with-wordpress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.