Whitespace accounts to 50% of the file-size of generated emails. This can quickly add up in queueing systems that notifies thousands of users.
To save CPU cycles, it'd be best to minimize the templates on init, instead of running the minifier on the output, or at render time.
Ideally just after loading it via this.cachedTheme = fs.readFileSync(themePath, 'utf8');.