Skip to content

Commit

Permalink
Update HTMLBuilder to fix incorrect minify
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoto-Cocoa committed Oct 3, 2019
1 parent c53fb09 commit 813b074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HTMLBuilder.js
Expand Up @@ -5,7 +5,7 @@ module.exports = class HTMLBuilder {
}

build(title, body, style = '', head = '') {
return `<title>${title}</title>${this.head}${head}<style>${this.styleBuild(style)}</style>${body}`.replace(/\s?(\n|\t)\s?/gm, '$1').replace(/(^\s*)/gm, '').replace(/>\s*/gm, '>');
return `<title>${title}</title>${this.head}${head}<style>${this.styleBuild(style)}</style>${body}`.replace(/\s?(\n|\t)\s?/gm, '$1').replace(/(^\s*)/gm, '').replace(/>\t*/gm, '>');
}

styleBuild(style = '') {
Expand Down

0 comments on commit 813b074

Please sign in to comment.