Minify: do not require MinifyWorker two times when creating a pool of two workers

minify-threads
webzwo0i 2022-02-13 22:03:13 +01:00
parent 849f3ec8e1
commit 16217a8aa1
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ const logger = log4js.getLogger('Minify');
const ROOT_DIR = path.join(settings.root, 'src/static/');
const threadsPool = new Threads.Pool(() => Threads.spawn(new Threads.Worker('./MinifyWorker')), 2);
const threadWorker = new Threads.Worker('./MinifyWorker');
const threadsPool = new Threads.Pool(() => Threads.spawn(threadWorker), 2);
const LIBRARY_WHITELIST = [
'async',