Add minifyCSS option to html-minifier

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-04-19 20:51:57 +01:00
parent bac2613120
commit 535d492443
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ async function generateConfirmationEmail(eml, uuid) {
let htmlTpl = await fs.readFile('mail-templates/register.html', 'utf-8');
let mini = minify(((htmlTpl).replace(/>>ACCESSCODE<</g, uuid)), { // Add collapse whitespace here
removeComments: true,
collapseWhitespace: true
collapseWhitespace: true,
minifyCSS: true
});
let txtTpl = fs.readFile('mail-templates/register.txt', 'utf-8');
return msg = {