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?
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?