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

Issue with renaming the block with asset versioning #628

Open
manojdarshana opened this issue Oct 4, 2016 · 0 comments
Open

Issue with renaming the block with asset versioning #628

manojdarshana opened this issue Oct 4, 2016 · 0 comments

Comments

@manojdarshana
Copy link

manojdarshana commented Oct 4, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant