Skip to content

Commit

Permalink
Docs: Fix return type (#2738)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald authored and lukastaegert committed Mar 5, 2019
1 parent f15aefb commit d27c0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/05-plugins.md
Expand Up @@ -235,7 +235,7 @@ Adds additional files to be monitored in watch mode so that changes to these fil

In general, it is recommended to use `this.addWatchfile` from within the hook that depends on the watched file.

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

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.

Expand Down

0 comments on commit d27c0f6

Please sign in to comment.