bufferapp / buffer-static-upload

📁→☁️🤘 Making it easy to upload your static assets
MIT License
4 stars 4 forks source link

Always upload `*.map` files #11

Closed hamstu closed 5 years ago

hamstu commented 5 years ago

See https://github.com/bufferapp/buffer-publish/pull/462 for context.

hamstu commented 5 years ago

Thanks for the great review here @djfarrelly. 🤗

In answer to almost all of your questions above: I thought about this some more on Friday and realized that we don't need to do anything special with *.map files as long as we configure webpack to add a hash before upload. This is pretty easy to do with a small addition to the source map configuration (see here).

There are a few reasons I like this approach:

With all that in mind, I'm going to close this PR, since I can now go back to using 0.2.1 with no issues.

As a tiny side note, in line with your SemVer message to the team, my gut would think this would be a 0.3.0 release when we publish it as stable. In a post-1.0 world I think this would mean a major breaking change which would push it a major version bump 😄

This is really helpful feedback, thanks! I didn't think too much about the version number in my haste to have something available, but in retrospect I agree it would have merited a bigger bump. I'll be sure to pause next time and give a little more consideration to that. 🙏