mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
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();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user