Skip to content

An options for specifing file name in code to replace #24

Description

@xileftenurb

hi,

I would like to be able to tell the name of the file to replace version number in my html who do not match the name on the filesystem.

the reason is that I create the file name from a variable.
so in my html the tag (using EJS) is like

<link rel="stylesheet" href="/release/<%=shortname%>.min.css" type="text/css">
<script src="/release/<%=shortname%>.min.js"></script>

and I use the same variable to create the path name I send to node-version-assets (via grunt)
like "public/release/" + shortName + ".min.js"

the file real name is defined by the variable.

Is there a ways to achieve this?

thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions