Compare commits

...

2 Commits

2 changed files with 3 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',

View File

@ -18,6 +18,7 @@ const compressCSS = async (filename, ROOT_DIR) => {
const output = await new CleanCSS({
rebase: true,
rebaseTo: basePath,
returnPromise: true,
}).minify([absPath]);
return output.styles;
} catch (error) {