akejolin / snowpack-plugin-content-hash

A small snowpack plugin which will add a content hash to all your imports paths on build command.
MIT License
8 stars 4 forks source link

fix(plugin): fixed getMountSrc function to return the right path #5

Closed NimaZahedi closed 3 years ago

NimaZahedi commented 3 years ago

it seems in the new version the shape of the object has been changed { url: /dist, static: false, resolve: true }. So this function needs to be updated to return the right value, otherwise it returns [object][object]

NimaZahedi commented 3 years ago

Hey @akejolin , Thanks for sharing the plugin, I guess it needs a small change in order to work with the new version.

NimaZahedi commented 3 years ago

Ohh, I guess I should have made it somehow backward compatible as well. So, I'll try soon.

akejolin commented 3 years ago

@NimaZahedi Thanks for contributing on this library. Much appreciated. Sorry for late response. I will have a look on your changes.