-
Notifications
You must be signed in to change notification settings - Fork 6
options.silent
Eugene Lazutkin edited this page Mar 18, 2014
·
2 revisions
Type: Boolean
Default value: false
A boolean value that indicates to suppress all informational output to console.
Default configuration (taken from the test):
grunt.initConfig({
tight_sprite: {
sprite1: {
options: {
hide: "tests/icons/"
},
src: ["tests/icons/*/**/*.{png,jpg,jpeg,gif}"],
dest: "tests/icons/sprite1"
}
}
});
It produces a following output:
$ grunt tight_sprite
Running "tight_sprite:sprite1" (tight_sprite) task
Packing 168 rectangles using the maximal rectangles algorithm.
Found rectangle 5552 by 64 wasting 21504 pixels.
Found rectangle 3680 by 112 wasting 3584 pixels.
Found rectangle 2896 by 128 wasting 1024 pixels.
Found rectangle 2240 by 160 wasting 0 pixels.
The best solution with the maximal rectangles algorithm wasted 0 pixels.
Done, without errors.
With silent: true
:
grunt.initConfig({
tight_sprite: {
sprite1: {
options: {
silent: true,
hide: "tests/icons/"
},
src: ["tests/icons/*/**/*.{png,jpg,jpeg,gif}"],
dest: "tests/icons/sprite1"
}
}
});
It produces a following output:
$ grunt tight_sprite
Running "tight_sprite:sprite1" (tight_sprite) task
Done, without errors.