A Laravel Mix extension to inline SVG files with Vue.js and automatically optimize them with SVGO
Remove Vue.js 3 as a peer dependency from the svg-vue3 component. This should remove any npm install warnings when using Vue.js 2.
All attributes from the SVGO result are now included in the Vue.js output.
Previously only the viewBox
was available, which clashes with some possible SVGO settings (e.g. removeViewBox).
Although this is a version upgrade, it could actually be considered as a fix. However, there could be some cases where this would produce side effects for the output because of the newly included attributes.
Fix option settings
The built-in plugin list of SVGO is now included in the config options.
Fix unused SVGO options.
Thanks @fr0tt
Switch to svgo-loader
. Fixes compatbility issues for Laravel Mix 6.0.20 and above.
Thanks @xperator 👍🏻
Bump version of dependencies, which now have reactive icon attributes. More regarding this topic can be found here: https://github.com/danielstgt/svg-vue3/issues/1
Thanks @andrey-hohlov 👍🏻
Refactor to exclusively use the composition API for Vue 3.
To upgrade, run:
npm install laravel-mix-svg-vue
Or if you prefer yarn:
yarn add laravel-mix-svg-vue
Added support for Vue 3.
To upgrade, run:
npm install laravel-mix-svg-vue
Or if you prefer yarn:
yarn add laravel-mix-svg-vue
Added support for Laravel Mix v6.