ExamplesCompiler.prototype.getOutputFilename = function()

in packages/docpack-examples-compiler/lib/ExamplesCompiler.js [216:231]


ExamplesCompiler.prototype.getOutputFilename = function(file, resourcePath) {
  var outputFilename = this.config.outputFilename;

  /**
   * Fixes case when file.content string is defined, but empty
   * @see https://github.com/webpack/loader-utils/blob/master/index.js#L274
   */
  var content = file.content === '' ? ' ' : file.content;
  var entryName = tools.interpolateName(outputFilename, {
    path: resourcePath,
    content: content,
    context: file.context || this._compiler.context
  });

  return entryName;
};