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

    grunt-minify-htmlpublic

    grunt-minify-html Build Status

    Minify HTML using minimize

    Issues with the output should be reported on the minimize issue tracker.

    This differs from grunt-contrib-htmlmin in that it uses a proper HTML-parser instead of a bunch of fragile regexes.

    Install

    $ npm install --save-dev grunt-minify-html
    

    Usage

    require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
     
    grunt.initConfig({
        minifyHtml: {
            options: {
                cdata: true
            },
            dist: {
                files: {
                    'dist/index.html': 'src/index.html'
                }
            }
        }
    });
     
    grunt.registerTask('default', ['minifyHtml']);

    Options

    See the minimize options.

    License

    MIT © Sindre Sorhus

    install

    npm i grunt-minify-html

    Downloadsweekly downloads

    645

    version

    3.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar