mirror of
https://github.com/kogakure/website-11ty-hamburg.stefanimhoff.de.git
synced 2026-02-03 12:15:28 +00:00
16 lines
303 B
JavaScript
16 lines
303 B
JavaScript
const htmlmin = require('html-minifier');
|
|
|
|
module.exports = function (content, outputPath) {
|
|
if (outputPath.endsWith('.html')) {
|
|
let minified = htmlmin.minify(content, {
|
|
useShortDoctype: true,
|
|
removeComments: true,
|
|
collapseWhitespace: true,
|
|
});
|
|
|
|
return minified;
|
|
}
|
|
|
|
return content;
|
|
};
|