From 548d6c6191d6112610d4c0bbc513b3cba67ac588 Mon Sep 17 00:00:00 2001 From: Andrew Quan Date: Sat, 18 Nov 2017 12:55:28 +0200 Subject: [PATCH] Docs update --- index.html | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 243f3fa..b23f142 100644 --- a/index.html +++ b/index.html @@ -495,24 +495,25 @@
Some example usage:
//uses default settings that are set in the config file - //make sure that input_files is set + //make sure that css is set cssPurge.purgeCSSFiles(); //purging a CSS file cssPurge.purgeCSSFiles({ - input_files:'demo/test1.css' + css:'demo/test1.css' }); //purging a CSS file with HTML cssPurge.purgeCSSFiles({ - input_files: 'demo/test1.css', - input_html_files: 'demo/html/test1.html' + css: 'demo/test1.css', + html: 'demo/html/test1.html' }); //purging a CSS file with HTML and options cssPurge.purgeCSSFiles({ - input_files: 'demo/test1.css', - input_html_files: 'demo/html/test1.html', + css_output: 'test1.min.css', + css: 'demo/test1.css', + html: 'demo/html/test1.html', trim : true, shorten : true, verbose : true @@ -520,8 +521,9 @@
Some example usage:
//purging a CSS file with HTML, options and config cssPurge.purgeCSSFiles({ - input_files: 'demo/test1.css', - input_html_files: 'demo/html/test1.html', + css_output: 'test1.min.css', + css: 'demo/test1.css', + html: 'demo/html/test1.html', trim : true, shorten : true, verbose : true @@ -617,10 +619,10 @@

For an overview of some of the options/features,

 {
   "options": {
-    "file_output": "purged.min.css",
-    "input_files": "demo/html/static-jekyll/_siteassets/main.css",
+    "css_output": "purged.min.css",
+    "css": "demo/html/static-jekyll/_siteassets/main.css",
     
-    "input_html_files": "demo/html/static-jekyll/_site",
+    "html": "demo/html/static-jekyll/_site",
     
     "trim": true,
     "trim_keep_non_standard_inline_comments": false,
@@ -702,7 +704,7 @@ 

For an overview of some of the options/features, - file_output + css_output The name of the CSS file to output as. @@ -710,7 +712,7 @@

For an overview of some of the options/features, - input_files + css CSS file(s) to be processed. @@ -720,7 +722,7 @@

For an overview of some of the options/features, - input_html_files + html HTML file(s) to be searched for CSS that is used.