🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

purgecss-with-wordpress

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purgecss-with-wordpress

purgecss with wordpress

1.0.0
Version published
Weekly downloads
877
-8.65%
Maintainers
1
Weekly downloads
 
Created

Purgecss with Wordpress

Based on the gist made by @frnwtr, purgecss-with-wordpress is a set of templates for Wordpress CMS.

Getting Started

Installation

You need to install purgecss first.

Install purgecss-with-wordpress:

npm i --save-dev purgecss-with-wordpress

Usage


import Purgecss from 'purgecss'
import purgecssWordpress from 'purgecss-with-worpress'

const purgeCss = new Purgecss({
  content: ['**/*.html'],
  css: ['**/*.css'],
  whitelist: purgecssWorpress.whitelist,
  whitelistPatterns: purgecssWordpress.whitelistPatterns
})
const result = purgecss.purge()

Versioning

Purgecss-with-wordpress use SemVer for versioning.

Acknowledgment

Purgecss-with-wordpress is based on the gist made by @frnwtr

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs

Package last updated on 24 Feb 2018

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