Nanobots Protecting Microbots
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    koa-html-minifierpublic

    Koa HTML Minifier

    Middleware that minifies your HTML responses using html-minifier. It uses html-minifier's default options which are all turned off by default, so you have to set the options otherwise it's not going to do anything.

    API

    // do compression stuff first
    app.use(require('koa-compress')());
     
    // then use this minifier
    app.use(require('koa-html-minifier')({
      collapseWhitespace: true
    }));

    Options

    See: https://github.com/kangax/html-minifier#options-quick-reference

    Keywords

    none

    install

    npm i koa-html-minifier

    Downloadsweekly downloads

    150

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar