feat: Make webpack configuration trigger linkable-push

Previously this was done by lens-webpack-build, which is awkward for
build-scripts that watch.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-tursoandJanne Savolainen authored and Janne Savolainen committed 2023-06-01 08:57:01 +03:00
1 parent 0c1e822788
commit 0c2cc25b5b
5 files changed
+20 -64

No files matched your search

@@ -0,0 +1,10 @@
import { pushLink } from "@ogre-tools/linkable";
import type { Compiler } from "webpack";
export class LinkablePushPlugin {
apply(compiler: Compiler) {
compiler.hooks.afterEmit.tap("LinkablePushPlugin", async () => {
await pushLink();
});
}
}