allow resource metadata to be explicitly set in config file#26
allow resource metadata to be explicitly set in config file#26viz wants to merge 2 commits intoproductboard:masterfrom
Conversation
|
This is great! Thanks for contributing back! Just curious, is there a reason you don't include hashes in your file names? That effectively solves your usecase and also makes the deploy faster to upload. Sorry about the failing checks here 😕, I really need to make some more time to clean this project up a bit. |
|
Hey Tomas, For this particular use, we're deploying a React component to S3 and using it in a Wordpress page. So we actually want the filename to be the same because we don't want to have to update the script tag in Wordpress every time we release an update to the component. In other cases webpack is including the hash in the filename since we're generating the script tag when we know the fingerprinted filename. Cheers, Pete Sent from my iPad
|
|
Makes total sense. Will look on merging this sometime next week. We have some urgent stuff to do in our team now. |
|
No problem. We're using our fork for now so just let me k ow when you've updated npm and we'll switch back. Sent from my iPhone
|
We needed to set max-age=0 to prevent Cloudfront from caching in dev/stage.
This simple change allows the default headers to be set in the config file.
Sorry, haven't had time to create any tests.