We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162c2dc commit 8f6d8a7Copy full SHA for 8f6d8a7
1 file changed
wasm/demo/webpack.config.js
@@ -4,6 +4,8 @@ const WasmPackPlugin = require('@wasm-tool/wasm-pack-plugin');
4
const path = require('path');
5
const fs = require('fs');
6
7
+const interval = setInterval(() => console.log('keepalive'), 1000 * 60 * 5);
8
+
9
module.exports = {
10
entry: './src/index.js',
11
output: {
@@ -40,6 +42,13 @@ module.exports = {
40
42
}),
41
43
new WasmPackPlugin({
44
crateDirectory: path.join(__dirname, '../lib')
- })
45
+ }),
46
+ {
47
+ apply(compiler) {
48
+ compiler.hooks.done.tap('clearInterval', () => {
49
+ clearInterval(interval);
50
+ });
51
+ }
52
53
]
54
};
0 commit comments