-
Notifications
You must be signed in to change notification settings - Fork 6
options.background
Eugene Lazutkin edited this page Mar 13, 2014
·
6 revisions
Type: String
Default value: ''
A string value that specifies a color to be used as a background. By default it is empty, which means to use a transparent background.
Valid CSS color constants can be used as this property's value: 'black', '#123456',
'#123', 'RGB(123, 45, 67)', and so on. Please consult
CSS Color Module Level 4 for more details.
Use the default (a transparent background):
grunt.initConfig({
tight_sprite: {
icons: {
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons.png"
}
}
})Use white as a background:
grunt.initConfig({
tight_sprite: {
icons: {
options: {
background: "white"
},
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons.png"
}
}
})Use red as a background:
grunt.initConfig({
tight_sprite: {
icons: {
options: {
background: "#f00"
},
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons.png"
}
}
})Use green as a background:
grunt.initConfig({
tight_sprite: {
icons: {
options: {
background: "#00FF00"
},
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons.png"
}
}
})Use blue as a background:
grunt.initConfig({
tight_sprite: {
icons: {
options: {
background: "RGB(0, 0, 255)"
},
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons.png"
}
}
})