I tried specifying force: true for grunt-contrib-csslint to continue even if error occurs as follows, but it does not seem to work, kindly help.
module.exports = function (grunt) {
grunt.initConfig({
// define source files and their 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 at least this one task
grunt.registerTask('default', [ 'csslint' ]);
};
}};
The 'lax' property also does not seem to work and it still picks the files specified there? Kindly point out the problem with this also.
Thanks,
Paddy