handleEmit(compilation, callback) {
    this.stats = compilation.getStats().toJson({
      all: false,
      entrypoints: true,
    }, true);
    this.options.publicPath = (compilation.outputOptions
      ? compilation.outputOptions.publicPath
      : compilation.options.output.publicPath)
      || '';
    this.getEntrypoints(this.stats.entrypoints);

    this.getAssets(this.getMinimalStatsChunks(compilation.chunks));
    this.processAssets(compilation.assets);
    this.writeAssetsFile();

    callback();
  }
/**
   * Handles emit event from Webpack
   * @desc The Webpack Compiler begins with emitting the generated assets.
   * Here plugins have the last chance to add assets to the `c.assets` array.
   * @See {@Link https://github.com/webpack/docs/wiki/plugins#emitc-compilation-async}
   * @method handleEmit
   * @param {object} compilation
   * @param {function} callback
   */
Handles emit event from Webpack
@desc The Webpack Compiler begins with emitting the generated assets.
Here plugins have the last chance to add assets to the `c.assets` array.
Handles emit event from Webpack @desc The Webpack Compiler begins with emitting the generated assets . Here plugins have the last chance to add assets to the ` c . assets ` array .
handleEmit(compilation, callback) {
    this.stats = compilation.getStats().toJson({
      all: false,
      entrypoints: true,
    }, true);
    this.options.publicPath = (compilation.outputOptions
      ? compilation.outputOptions.publicPath
      : compilation.options.output.publicPath)
      || '';
    this.getEntrypoints(this.stats.entrypoints);
    this.getAssets(this.getMinimalStatsChunks(compilation.chunks));
    this.processAssets(compilation.assets);
    this.writeAssetsFile();
    callback();
  }
handleEmit ( compilation , callback ) { this . stats = compilation . getStats ( ) . toJson ( { all : false , entrypoints : true , } , true ) ; this . options . publicPath = ( compilation . outputOptions ? compilation . outputOptions . publicPath : compilation . options . output . publicPath ) || '' ; this . getEntrypoints ( this . stats . entrypoints ) ; this . getAssets ( this . getMinimalStatsChunks ( compilation . chunks ) ) ; this . processAssets ( compilation . assets ) ; this . writeAssetsFile ( ) ; callback ( ) ; }
Handles emit event from Webpack
 @desc The Webpack Compiler begins with emitting the generated assets.
Handles emit event from Webpack @desc The Webpack Compiler begins with emitting the generated assets .