Babel plugin to optimise and inline svg
🆕 Add option to export a data URI, with exportDataURI: true
🛠️ Change namespaceIds
argument order to standardise transformer arguments
🛠️ Compose the transform functions together instead of creating new variables each time
Shoutout to @arpontes for adding the data URI functionality ✌️
🆕 Add option to disable SVGO 🆕 Add option to disable ID namespacing 🛠️ Add prettier & npm task 🛠️ Use airbnb eslint config 🛠️ Improve tests 📝 Update readme 📝 Add changelog ✨ Remove yarn lockfile ✨ Various other improvements
For details to the API changes, check out the options in the newly updated readme.
Thanks to @moelders for much of the refactoring, @amogower for the ID namespacing improvements, and I also stole the idea for disabling SVGO from @Nickhoyer's fork.