You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
889 B
13 lines
889 B
2 years ago
|
|
||
|
var css = '.headbg{margin:0 8px;display:none; }a:link,a:focus{ color:#00c }\n /* comment */ a:active{ color:red }',
|
||
|
pp_css = require('../pretty-data').pd.css(css),
|
||
|
pp_cssmin_com = require('../pretty-data').pd.cssmin(css,true),
|
||
|
pp_cssmin = require('../pretty-data').pd.cssmin(css);
|
||
|
|
||
|
console.log('\n==============================================================================\n');
|
||
|
console.log('\n/*------- Original CSS string: -------*/\n\n' + css + '\n');
|
||
|
console.log('\n/*------- Beautified original CSS -------------*/\n\n' + pp_css + '\n');
|
||
|
console.log('\n/*------- Minified original CSS with preserved comments: -------*/\n\n' + pp_cssmin_com + '\n');
|
||
|
console.log('\n/*------- Minified original CSS with deleted comments: ---------*/\n\n' + pp_cssmin + '\n');
|
||
|
console.log('\n===============================================================================\n');
|