after_prepare/uglify.js
function run() {
  platforms.forEach(function(platform) {
    var wwwPath;

    switch (platform) {
      case 'android':
        wwwPath = path.join(platformPath, platform, 'assets', 'www');
        if (!fs.existsSync(wwwPath)) {
          wwwPath = path.join(platformPath, platform, 'app', 'src', 'main', 'assets', 'www');
        }
        break;

      case 'ios':
      case 'browser':
      case 'wp8':
      case 'windows':
        wwwPath = path.join(platformPath, platform, 'www');
        break;

      default:
        console.log('this hook only supports android, ios, wp8, windows, and browser currently');
        return;
    }

    processFolders(wwwPath);
  });
}
function run() {
  platforms.forEach(function(platform) {
    var wwwPath;

    switch (platform) {
      case 'android':
        wwwPath = path.join(platformPath, platform, 'assets', 'www');
        if (!fs.existsSync(wwwPath)) {
          wwwPath = path.join(platformPath, platform, 'app', 'src', 'main', 'assets', 'www');
        }
        break;

      case 'ios':
      case 'browser':
      case 'wp8':
      case 'windows':
        wwwPath = path.join(platformPath, platform, 'www');
        break;

      default:
        console.log('this hook only supports android, ios, wp8, windows, and browser currently');
        return;
    }

    processFolders(wwwPath);
  });
}
function run ( ) { platforms . forEach ( function ( platform ) { var wwwPath ; switch ( platform ) { case 'android' : wwwPath = path . join ( platformPath , platform , 'assets' , 'www' ) ; if ( ! fs . existsSync ( wwwPath ) ) { wwwPath = path . join ( platformPath , platform , 'app' , 'src' , 'main' , 'assets' , 'www' ) ; } break ; case 'ios' : case 'browser' : case 'wp8' : case 'windows' : wwwPath = path . join ( platformPath , platform , 'www' ) ; break ; default : console . log ( 'this hook only supports android, ios, wp8, windows, and browser currently' ) ; return ; } processFolders ( wwwPath ) ; } ) ; }
Run compression for all specified platforms.
@return {undefined}
Run compression for all specified platforms .