From f73297e1f5d4a3991bdf223683fce2d9d35915c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Szczepa=C5=84czyk?= Date: Thu, 21 Mar 2019 00:44:52 +0100 Subject: [PATCH 1/2] Add warning on config in promise usage --- src/content/configuration/configuration-types.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/configuration/configuration-types.md b/src/content/configuration/configuration-types.md index 52eefc3bd1cb..c6b304e87b61 100644 --- a/src/content/configuration/configuration-types.md +++ b/src/content/configuration/configuration-types.md @@ -59,6 +59,8 @@ module.exports = () => { }; ``` +W> Keep in mind this only works when using CLI. [`webpack()`](/api/node/#webpack) expects a config object. + ## Exporting multiple configurations From e4e2c9623cfcc8e3c78665d1fe536d9c320a2d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Szczepa=C5=84czyk?= Date: Thu, 31 Oct 2019 04:39:18 +0100 Subject: [PATCH 2/2] Update src/content/configuration/configuration-types.md Co-Authored-By: Eugene Hlushko --- src/content/configuration/configuration-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/configuration/configuration-types.md b/src/content/configuration/configuration-types.md index c6b304e87b61..6de0fb92112f 100644 --- a/src/content/configuration/configuration-types.md +++ b/src/content/configuration/configuration-types.md @@ -59,7 +59,7 @@ module.exports = () => { }; ``` -W> Keep in mind this only works when using CLI. [`webpack()`](/api/node/#webpack) expects a config object. +W> Returning a `Promise` only works when using webpack via CLI. [`webpack()`](/api/node/#webpack) expects an object. ## Exporting multiple configurations