babel-plugin-transform-assets icon indicating copy to clipboard operation
babel-plugin-transform-assets copied to clipboard

README doesn't describe if you're able to change the hashing algorithm

Open sjmarshy opened this issue 7 years ago • 1 comments

The docs don't say which hashing algorithms are available, or explicitly if you can change it - just a cryptic [file].[ext]?[sha512:hash:base64:7].

It'd be great if the docs explained how this worked, and what the various possibilities were (or at least where the options come from). At the moment, I'm just working it out through trial and error

sjmarshy avatar Jul 19 '17 15:07 sjmarshy

in case you didn't solve it already:

options are being proxied as they are to asset-require-hook https://github.com/jmurzy/babel-plugin-transform-assets/blob/master/src/index.js#L37

which in turn, works like this https://github.com/aribouius/asset-require-hook/blob/master/src/compiler.js

andreineculau avatar Jul 19 '17 21:07 andreineculau