Skip to content

Add ngx-env.js versioning #130

Open
Open
@VitalyEmelyanov

Description

@VitalyEmelyanov

Thanks for the great project!

When using @ngx-env/builder, the final index.html is injected with <script src="/ngx-env.js"> line, which has a static name, and it can lead potentially to the caching issues.

It would be great to add a special optional env variable that can be used during build to output something like <script src="/ngx-env.js?v=1.2.3">. That will ensure the file does not have the caching issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions