@@ -495,33 +495,35 @@ <h6>Some example usage:</h6>
495
495
496
496
497
497
//uses default settings that are set in the config file
498
- //make sure that input_files is set
498
+ //make sure that css is set
499
499
cssPurge.purgeCSSFiles();
500
500
501
501
//purging a CSS file
502
502
cssPurge.purgeCSSFiles({
503
- input_files :'demo/test1.css'
503
+ css :'demo/test1.css'
504
504
});
505
505
506
506
//purging a CSS file with HTML
507
507
cssPurge.purgeCSSFiles({
508
- input_files : 'demo/test1.css',
509
- input_html_files : 'demo/html/test1.html'
508
+ css : 'demo/test1.css',
509
+ html : 'demo/html/test1.html'
510
510
});
511
511
512
512
//purging a CSS file with HTML and options
513
513
cssPurge.purgeCSSFiles({
514
- input_files: 'demo/test1.css',
515
- input_html_files: 'demo/html/test1.html',
514
+ css_output: 'test1.min.css',
515
+ css: 'demo/test1.css',
516
+ html: 'demo/html/test1.html',
516
517
trim : true,
517
518
shorten : true,
518
519
verbose : true
519
520
});
520
521
521
522
//purging a CSS file with HTML, options and config
522
523
cssPurge.purgeCSSFiles({
523
- input_files: 'demo/test1.css',
524
- input_html_files: 'demo/html/test1.html',
524
+ css_output: 'test1.min.css',
525
+ css: 'demo/test1.css',
526
+ html: 'demo/html/test1.html',
525
527
trim : true,
526
528
shorten : true,
527
529
verbose : true
@@ -617,10 +619,10 @@ <h4>For an overview of some of the options/features,
617
619
< pre > < code class ="hljs json ">
618
620
{
619
621
"options": {
620
- "file_output ": "purged.min.css",
621
- "input_files ": "demo/html/static-jekyll/_siteassets/main.css",
622
+ "css_output ": "purged.min.css",
623
+ "css ": "demo/html/static-jekyll/_siteassets/main.css",
622
624
623
- "input_html_files ": "demo/html/static-jekyll/_site",
625
+ "html ": "demo/html/static-jekyll/_site",
624
626
625
627
"trim": true,
626
628
"trim_keep_non_standard_inline_comments": false,
@@ -702,15 +704,15 @@ <h4>For an overview of some of the options/features,
702
704
< tbody >
703
705
< tr >
704
706
< td >
705
- file_output
707
+ css_output
706
708
</ td >
707
709
< td >
708
710
The name of the CSS file to output as.
709
711
</ td >
710
712
</ tr >
711
713
< tr >
712
714
< td >
713
- input_files
715
+ css
714
716
</ td >
715
717
< td >
716
718
CSS file(s) to be processed.
@@ -720,7 +722,7 @@ <h4>For an overview of some of the options/features,
720
722
</ tr >
721
723
< tr >
722
724
< td >
723
- input_html_files
725
+ html
724
726
</ td >
725
727
< td >
726
728
HTML file(s) to be searched for CSS that is used.
0 commit comments