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

purgecss

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purgecss - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

bin/purgecss

14

__tests__/Methods/getFileExtracter.test.js
import Purgecss from './../../src/index'
import {
PurifyCssExtractorDefault,
PurifyCssExtractorEjs,
PurifyCssExtractorHtml,
PurifyCssExtractorJs,
PurifyCssExtractorMissingMethods,
PurifyCssExtractorMissingParams,
PurifyCssExtractorPug
PurgecssExtractorDefault,
PurgecssExtractorEjs,
PurgecssExtractorHtml,
PurgecssExtractorJs,
PurgecssExtractorMissingMethods,
PurgecssExtractorMissingParams,
PurgecssExtractorPug
} from './getFileExtractorData'

@@ -11,0 +11,0 @@

@@ -7,3 +7,3 @@ ## Proposed changes

What types of changes does your code introduce to Purifycss?
What types of changes does your code introduce to Purgecss?
_Put an `x` in the boxes that apply_

@@ -10,0 +10,0 @@

{
"name": "purgecss",
"version": "0.1.3",
"version": "0.2.0",
"description": "Remove unused css selectors.",

@@ -10,4 +10,6 @@ "main": "./lib/purgecss.js",

"doc": "docs",
"lib": "lib"
"lib": "lib",
"test": "__tests__"
},
"bin": "./bin/purgecss",
"scripts": {

@@ -33,3 +35,3 @@ "test": "jest .+.test.js",

],
"author": "",
"author": "Ffloriel",
"license": "MIT",

@@ -55,7 +57,7 @@ "bugs": {

"eslint-plugin-flowtype": "^2.35.0",
"flow-bin": "^0.49.1",
"flow-bin": "^0.50.0",
"jest": "^20.0.4",
"prettier": "^1.5.2",
"prettier": "^1.5.3",
"regenerator-runtime": "^0.10.5",
"rollup": "^0.45.1",
"rollup": "^0.45.2",
"rollup-plugin-babel": "^2.7.1",

@@ -62,0 +64,0 @@ "rollup-plugin-commonjs": "^8.0.2",

@@ -78,4 +78,31 @@ # Purgecss

> In progress
```js
import { rollup } from 'rollup';
import purgecss from 'rollup-plugin-purgecss';
rollup({
entry: 'main.js',
plugins: [
purgecss({
content: ["index.html"]
})
]
});
```
#### CLI
```
purgecss --css <css> --content <content> [option]
Options:
--con, --content glob of content files [array]
-c, --config configuration file [string]
-o, --out Filepath directory to write purified css files to [string]
-w, --whitelist List of classes that should not be removed
[array] [default: []]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
```
## Contributing

@@ -82,0 +109,0 @@

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