Comparing version 0.1.3 to 0.2.0
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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
661584
0
134
10
20349