Skip to content

how to use options:hashFunction? #2

Description

@wxwxnzm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions