Add minifyCSS option to html-minifier
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
bac2613120
commit
535d492443
@ -36,7 +36,8 @@ async function generateConfirmationEmail(eml, uuid) {
|
|||||||
let htmlTpl = await fs.readFile('mail-templates/register.html', 'utf-8');
|
let htmlTpl = await fs.readFile('mail-templates/register.html', 'utf-8');
|
||||||
let mini = minify(((htmlTpl).replace(/>>ACCESSCODE<</g, uuid)), { // Add collapse whitespace here
|
let mini = minify(((htmlTpl).replace(/>>ACCESSCODE<</g, uuid)), { // Add collapse whitespace here
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
collapseWhitespace: true
|
collapseWhitespace: true,
|
||||||
|
minifyCSS: true
|
||||||
});
|
});
|
||||||
let txtTpl = fs.readFile('mail-templates/register.txt', 'utf-8');
|
let txtTpl = fs.readFile('mail-templates/register.txt', 'utf-8');
|
||||||
return msg = {
|
return msg = {
|
||||||
|
Loading…
Reference in New Issue
Block a user