Skip to content

Commit

Permalink
Merge pull request #77 from amriogit/master
Browse files Browse the repository at this point in the history
cssParser support options.debug
  • Loading branch information
popomore committed Oct 18, 2014
2 parents 050cee1 + 606d028 commit eda0fc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/lib/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ exports.init = function(grunt) {
var banner = format('/*! define %s */', id);
grunt.file.write(fileObj.dest, [banner, ret].join('\n'));

// create -debug.css file
if (options.debug === false) {
return;
}
var dest = fileObj.dest.replace(/\.css$/, '-debug.css');

ret = css.stringify(data[0].code, function(node) {
Expand Down

0 comments on commit eda0fc2

Please sign in to comment.