Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewEQ committed Nov 18, 2017
1 parent 993415e commit 548d6c6
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -495,33 +495,35 @@ <h6>Some example usage:</h6>


//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
});

//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
Expand Down Expand Up @@ -617,10 +619,10 @@ <h4>For an overview of some of the options/features,
<pre><code class="hljs json">
{
"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,
Expand Down Expand Up @@ -702,15 +704,15 @@ <h4>For an overview of some of the options/features,
<tbody>
<tr>
<td>
file_output
css_output
</td>
<td>
The name of the CSS file to output as.
</td>
</tr>
<tr>
<td>
input_files
css
</td>
<td>
CSS file(s) to be processed.
Expand All @@ -720,7 +722,7 @@ <h4>For an overview of some of the options/features,
</tr>
<tr>
<td>
input_html_files
html
</td>
<td>
HTML file(s) to be searched for CSS that is used.
Expand Down

0 comments on commit 548d6c6

Please sign in to comment.