On this page

  • {Source}
new PrefixSource(prefix, source): PrefixSource
Attributes
prefix:<string>
source:
{string|Buffer |Source}
Returns:
{PrefixSource}
webpack.sources.PrefixSource.buffer(): Buffer
Returns:
{Buffer}

webpack.sources.PrefixSource.getPrefix(): string
Returns:<string>

webpack.sources.PrefixSource.map(options?): void
  • options {MapOptions}
  • Returns: {RawSourceMap}

webpack.sources.PrefixSource.original(): Source
Returns:
{Source}

webpack.sources.PrefixSource.size(): number
Returns:<number>

webpack.source(): SourceValue
Returns:
{SourceValue}

webpack.sources.PrefixSource.sourceAndMap(options?): void
  • options {MapOptions}
  • Returns: {SourceAndMap}

webpack.sources.PrefixSource.streamChunks(options, onChunk, onSource, onName): void

webpack.sources.PrefixSource.updateHash(hash): void
  • hash {HashLike}
  • Returns: {void}