public static void minify ( String absolutePath ) { if ( absolutePath == null || absolutePath . contains ( MIN ) ) { return ; } if ( config == null ) { System . setProperty ( Key . APPLICATION_CONFIG . toString ( ) , basePath + Default . CONFIG_PATH . toString ( ) ) ; config = new Config ( Mode . DEV . toString ( ) ) ; } if ( config . isApplicationMinifyCSS ( ) && absolutePath . endsWith ( JS ) ) { minifyJS ( new File ( absolutePath ) ) ; } else if ( config . isApplicationMinifyJS ( ) && absolutePath . endsWith ( CSS ) ) { minifyCSS ( new File ( absolutePath ) ) ; } }
Minifies a JS or CSS file to a corresponding JS or CSS file