You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to time imgPath and imgName,like this sprotesmith({ imgName: 'a_icon.png' + (+new Date()), imgPath: '/img/a_icon.png' + (+new Date()) })
gulp will change the file name every time ,
so i tried: sprotesmith({ imgName: 'a_icon.png', imgPath: '/img/a_icon.png', hashFunction(f, c) { return f + '_17点19分‘; } })
it didn't work
Is it possible to generate different hash values each time depending on the picture?
The text was updated successfully, but these errors were encountered:
Hi there, by default if you don't provide a hash function spritesmash will use the MD5 on the contents of the file to determine the hash making it stable based on the contents of the file. Is that what you're after?
I tried to time imgPath and imgName,like this sprotesmith({ imgName: 'a_icon.png' + (+new Date()), imgPath: '/img/a_icon.png' + (+new Date()) })
gulp will change the file name every time ,
so i tried: sprotesmith({ imgName: 'a_icon.png', imgPath: '/img/a_icon.png', hashFunction(f, c) { return f + '_17点19分‘; } })
it didn't work
Is it possible to generate different hash values each time depending on the picture?
You misspelled spritesmith and this project is spritesmash, not smith.
I tried to time imgPath and imgName,like this
sprotesmith({ imgName: 'a_icon.png' + (+new Date()), imgPath: '/img/a_icon.png' + (+new Date()) })
gulp will change the file name every time ,
so i tried:
sprotesmith({ imgName: 'a_icon.png', imgPath: '/img/a_icon.png', hashFunction(f, c) { return f + '_17点19分‘; } })
it didn't work
Is it possible to generate different hash values each time depending on the picture?
The text was updated successfully, but these errors were encountered: