1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/infrastructure/webpack/src/plugins/linkable-push-plugin.ts
Iku-turso 7114ee0e93 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>
2023-05-31 14:35:37 +03:00

11 lines
262 B
TypeScript

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();
});
}
}