grunt-strip-css-comments

Strip comments from CSS


Keywords
gruntplugin, css, style, stylesheet, strip, remove, delete, trim, comments, preprocess, transform, string
License
MIT
Install
npm install grunt-strip-css-comments@1.3.0

Documentation

grunt-strip-css-comments Build Status

Strip comments from CSS using strip-css-comments

Install

$ npm install --save-dev grunt-strip-css-comments

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
    stripCssComments: {
        dist: {
            files: {
                'dist/app.css': 'src/app.css'
            }
        }
    }
});

grunt.registerTask('default', ['stripCssComments']);

Options

See the strip-css-comments options.

License

MIT © Sindre Sorhus