From 16336758a9f643cc27f84ab6af68cda988916cf9 Mon Sep 17 00:00:00 2001 From: everdimension Date: Sat, 19 Jan 2019 23:55:04 +0300 Subject: [PATCH] Update docs (#2654) Use correct signature for `this.setAssetSource` fn. --- docs/05-plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/05-plugins.md b/docs/05-plugins.md index a5b14232d73..3c2d0633f99 100644 --- a/docs/05-plugins.md +++ b/docs/05-plugins.md @@ -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`