0.3.0 • Published 8 years ago
grunt-csstree-validator v0.3.0
grunt-csstree-validator
Grunt plugin for the CSS(Tree) Validator
CSS(Tree) Validator
helps to validate your CSS code according to CSS rules.
Install
npm install grunt-csstree-validator --save-dev
or
yarn add grunt-csstree-validator --dev
Usage
module.exports = function( grunt ) {
grunt.initConfig( {
'csstree-validator': {
files: [ 'test/src/app.css', 'test/src/main.css' ]
}
} );
grunt.loadNpmTasks( 'grunt-optimize-js' );
grunt.registerTask( 'default', [ 'csstree-validator' ] );
};
files
is an array with CSS file paths to validate. A single CSS file as a string is also possible.
Why
Ideally suited for the pre-commit hook.