refactor(grunt): spritesmith cached on server, do not add timestamp to name, remove unused coins icons

This commit is contained in:
Matteo Pagliazzi 2014-02-12 15:11:45 +01:00
parent 5c01dbce74
commit cddf513359
7 changed files with 1922 additions and 1924 deletions

View file

@ -6,9 +6,7 @@ module.exports = function(grunt) {
// Cleanup previous spritesmith files
clean: {
main : {
src : [ "dist/spritesmith-*.png"]
}
main: ['dist/spritesmith.png']
},
/**
@ -20,7 +18,7 @@ module.exports = function(grunt) {
sprite:{
customizer: {
src: 'img/sprites/spritesmith/**/*.png',
destImg: 'dist/spritesmith-' + timestamp + '.png',
destImg: 'dist/spritesmith.png',
destCSS: 'dist/customizer.css',
algorithm: 'binary-tree',
cssVarMap: function (sprite) {
@ -45,7 +43,7 @@ module.exports = function(grunt) {
},
main: {
src: 'img/sprites/spritesmith/**/*.png',
destImg: 'dist/spritesmith-' + timestamp + '.png',
destImg: 'dist/spritesmith.png',
destCSS: 'dist/spritesmith.css',
algorithm: 'binary-tree',
cssOpts: {

1918
dist/customizer.css vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 KiB

1918
dist/spritesmith.css vendored

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB