mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 18:45:38 +00:00
16 lines
289 B
JavaScript
16 lines
289 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const DelayPlugin = function(delayMs) {
|
||
|
this.delayMs = delayMs;
|
||
|
};
|
||
|
|
||
|
DelayPlugin.prototype.apply = function(compiler) {
|
||
|
compiler.plugin('before-run', (compiler, done) => {
|
||
|
setTimeout(() => {
|
||
|
done();
|
||
|
}, this.delayMs);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
module.exports = DelayPlugin;
|