Permalink
Browse files

feat(core): add verbose log option

  • Loading branch information...
sparanoid committed Sep 1, 2015
1 parent 93bf274 commit ff8c5501ac0f9b066833722d07e27d644bd4b4d9
Showing with 16 additions and 2 deletions.
  1. +11 −0 README.md
  2. +5 −2 tasks/assets_inline.js
@@ -242,6 +242,17 @@ Defaults to
}
```
#### verbose
Defaults to
```js
{
verbose: false
}
Get detailed output log.
## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
@@ -34,7 +34,8 @@ module.exports = function(grunt) {
inlineSvg: true,
inlineSvgBase64: false,
includeTag: "",
assetsUrlPrefix: ""
assetsUrlPrefix: "",
verbose: false
});
options.cssTags = this.options().cssTags || {
@@ -161,7 +162,9 @@ module.exports = function(grunt) {
var attributes = {};
for (var index in el.attribs) {
var attr = el.attribs[index];
grunt.log.writeln(("attr: ").green + index + ":" + attr);
if (options.verbose) {
grunt.log.writeln(("attr: ").green + index + ":" + attr);
}
attributes[ index ] = attr;
}
return attributes;

0 comments on commit ff8c550

Please sign in to comment.