srod/node-minify

The $1 option only works with .js files

Closed this issue · 0 comments

arnog commented

Use:

minify({
    compressor: htmlMinifier,
    input: 'stage/**/*.html',
    output: '$1.min.html',
    callback: function(err, _min) {
        if (err) console.log(err)
    }
});

Result: A ".min.html" file gets created.