control-freak-ide/server/nodejs/util/buildscripts/tests/css/flattenTest.js
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

19 lines
617 B
JavaScript

//Test file for the flattening of CSS files.
//Run this file from the util/buildscripts/tests/css directory.
//Example call to run the test:
//java -classpath ../../../shrinksafe/js.jar org.mozilla.javascript.tools.shell.Main flattenTest.js
load("../../jslib/logger.js");
load("../../jslib/buildUtil.js");
load("../../jslib/fileUtil.js");
var result = buildUtil.flattenCss( "blue/one.css", fileUtil.readFile("blue/one.css"));
/* Copy the blue folder to a folder called temp then try this command
(warning, it modifies the folder contents
var result = buildUtil.optimizeCss("temp", "comments");
*/
print(result);