dojo-util
Version:
Dojo utilities including build system for optimizing JavaScript application performance, and DOH testing tool
19 lines (13 loc) • 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);