We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4318c9 + baddde9 commit e28b508Copy full SHA for e28b508
tasks/csscomb.js
@@ -74,12 +74,17 @@ module.exports = function (grunt) {
74
75
// Get CSS from a source file:
76
var css = grunt.file.read(src);
77
+ var combed;
78
79
// Comb it:
80
grunt.log.ok('Sorting file "' + src + '"...');
81
var syntax = src.split('.').pop();
- var combed = comb.processString(css, { syntax: syntax });
82
- grunt.file.write(f.dest, combed);
+ try {
83
+ combed = comb.processString(css, { syntax: syntax });
84
+ grunt.file.write(f.dest, combed);
85
+ } catch(e) {
86
+ grunt.log.error(e);
87
+ }
88
});
89
90
0 commit comments