mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
refactor(grunt): spritesmith cached on server, do not add timestamp to name, remove unused coins icons
This commit is contained in:
parent
5c01dbce74
commit
cddf513359
7 changed files with 1922 additions and 1924 deletions
|
|
@ -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
1918
dist/customizer.css
vendored
File diff suppressed because it is too large
Load diff
2
dist/habitrpg-shared.css
vendored
2
dist/habitrpg-shared.css
vendored
File diff suppressed because one or more lines are too long
BIN
dist/spritesmith-1392139075350.png
vendored
BIN
dist/spritesmith-1392139075350.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 481 KiB |
1918
dist/spritesmith.css
vendored
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 |
Loading…
Reference in a new issue