Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Issue with renaming the block with asset versioning #628

@manojdarshana

Description

@manojdarshana

I am using grunt-usemin along with grunt-assets-versioning and grunt-aws. So grunt-assets-versioning generates a hash coded version of the minified files and grunt aws is used to push those generated files into S3 bucket.

So when i am reffering back those files from S3 bucket it should be something like this,

<script src="http://s3/abcdfg/js/script.7b11a86e.js"></script>
But when i customize the block using blockReplacements it produces something like this at the moment,

<script src="http://s3/abcdfg/js/script.js"></script>

So it is missing the versioning(MD5 Hash). so in blockReplacements we use block.dest as the path. so usemin detects the minified version instead of the final file revision version. #

How do i fix this. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions