lib/client/index.js
function(opts) {
      if (opts && typeof opts !== 'object') {
        throw new Error('Options passed to ss.client.packAssets() must be an object');
      }
      options.packedAssets = opts || true;
      options.servePacked = opts || true;
      options.liveReload = false;

      // As it's safe to assume we're running in production mode at this point, if your app is not catching uncaught
      // errors with its own custom error handling code, step in and prevent any exceptions from taking the server down
      if (options.packedAssets && process.listeners('uncaughtException').length === 0) {
        return process.on('uncaughtException', function(err) {
          log.error('Uncaught Exception!'.red);
          return log.error(err.stack);
        });
      }
    }
function(opts) {
      if (opts && typeof opts !== 'object') {
        throw new Error('Options passed to ss.client.packAssets() must be an object');
      }
      options.packedAssets = opts || true;
      options.servePacked = opts || true;
      options.liveReload = false;

      // As it's safe to assume we're running in production mode at this point, if your app is not catching uncaught
      // errors with its own custom error handling code, step in and prevent any exceptions from taking the server down
      if (options.packedAssets && process.listeners('uncaughtException').length === 0) {
        return process.on('uncaughtException', function(err) {
          log.error('Uncaught Exception!'.red);
          return log.error(err.stack);
        });
      }
    }
function ( opts ) { if ( opts && typeof opts !== 'object' ) { throw new Error ( 'Options passed to ss.client.packAssets() must be an object' ) ; } options . packedAssets = opts || true ; options . servePacked = opts || true ; options . liveReload = false ; // As it's safe to assume we're running in production mode at this point, if your app is not catching uncaught // errors with its own custom error handling code, step in and prevent any exceptions from taking the server down if ( options . packedAssets && process . listeners ( 'uncaughtException' ) . length === 0 ) { return process . on ( 'uncaughtException' , function ( err ) { log . error ( 'Uncaught Exception!' . red ) ; return log . error ( err . stack ) ; } ) ; } }
Tell the asset manager to pack and minimise all assets
Tell the asset manager to pack and minimise all assets