mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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>
11 lines
262 B
TypeScript
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();
|
|
});
|
|
}
|
|
}
|