From 1fe940618800a2427a5363e8ddec1aa4ceb4df9b Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 28 Sep 2024 16:07:02 +0200 Subject: [PATCH] docs(README.md): added lifecycle property --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 07538d6..bc3eee9 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,25 @@ esbuild.build({ ### Properties +#### ``lifecycle`` + +> Default: ``onEnd`` + +An string with either the value ``onStart`` or ``onEnd``. + +
+Show an example + +````typescript +fileCopyPlugin({ + lifecycle: "onStart" +}); +```` + +
+ +[See here](https://esbuild.github.io/plugins/#concepts) for more about esbuild lifecycles. + #### ``inputs`` > Default: ``undefined``