-
Notifications
You must be signed in to change notification settings - Fork 6
options.cssDest
Eugene Lazutkin edited this page Dec 9, 2013
·
4 revisions
Type: String
Default value: none
A file name for a generated CSS file. If specified it is used as is. If not,
as per grunt rules regular dest will be used with its extension replaced by
'.css'.
Default configuration:
grunt.initConfig({
tight_sprite: {
// describe my sprite
icons: {
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons.png"
}
}
})CSS file's name will be 'images/icons.css'.
Extension-less configuration:
grunt.initConfig({
tight_sprite: {
// describe my sprite
icons: {
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons"
}
}
})CSS file's name will be 'images/icons.css'.
Custom CSS file configuration:
grunt.initConfig({
tight_sprite: {
// describe my sprite
icons: {
options: {
cssDest: "style/icons.css"
},
cwd: "images/icons",
src: ["**/*.png"],
dest: "images/icons.png"
}
}
})CSS file's name will be 'style/icons.css'.