gruntjs - How to continue if grunt-contrib-csslint throws error and how to exclude some files? -



tried specifying force: true grunt-contrib-csslint continue if error occurs follows, not seem work, kindly help.

module.exports = function (grunt) {     grunt.initconfig({      // define source files , destinations     csslint:{        options: {            force: true,            absolutefilepathsforformatters: true,            formatters: [                {id: 'compact', dest: 'quality/report/css/compact.xml'}            ]        },        strict:{            options:{                force: true,                import:2,                "box-model":false,            },            src:['src/main/webapp/public/css/*.css'],        },        lax: {             options: {                 import: false             },        src: ['src/main/webapp/public/css/ng-grid.css']       }    }    });    // load plugins    grunt.loadnpmtasks('grunt-contrib-csslint');         // register @ least 1 task        grunt.registertask('default', [ 'csslint' ]);        };        }}; 

the 'lax' property not seem work , still picks files specified there? kindly point out problem also.

thanks,
paddy

to insert following code in registertask. cannot set force option csslint can set force option grunt.

// set grunt force option grunt.option("force", true);  // register @ least 1 task grunt.registertask('default', [ 'csslint' ]); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -