Skip to content

Commit

Permalink
Update docs (#2654)
Browse files Browse the repository at this point in the history
Use correct signature for `this.setAssetSource` fn.
  • Loading branch information
everdimension authored and lukastaegert committed Jan 19, 2019
1 parent c1feb63 commit 1633675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/05-plugins.md
Expand Up @@ -237,7 +237,7 @@ In general, it is recommended to use `this.addWatchfile` from within the hook th

#### `this.emitAsset(assetName: string, source: string) => void`

Emits a custom file to include in the build output, returning its `assetId`. You can defer setting the source if you provide it later via `this.setAssetSource(assetId)`. A string or Buffer source must be set for each asset through either method or an error will be thrown on generate completion.
Emits a custom file to include in the build output, returning its `assetId`. You can defer setting the source if you provide it later via `this.setAssetSource(assetId, source)`. A string or Buffer source must be set for each asset through either method or an error will be thrown on generate completion.

#### `this.error(error: string | Error, position?: number) => void`

Expand Down

0 comments on commit 1633675

Please sign in to comment.