🔨 webpack loader that lets you use SVG files as Vue components
MIT License
Bot releases are visible (Hide)
package.json
semver
packagePublished by damianstasik about 4 years ago
Long time no see! It's been a while since the last release and the issue list has gotten quite long, it's time to fix this! I've been focused on my SVG-to-Vue plugin for Vite (vite-plugin-svg
) and now that we are close to a stable release of Vue 3 I wanted to clean up this plugin too. I plan to continue supporting Vue 2, but you should see Vue 3 support in the following days.
You don't need to use babel-loader
with this plugin, but you need to add vue-loader
before vue-svg-loader
. Please check out the documentation on the dev
branch to see the configuration examples.
This move saves us from many headaches: broken IE 11, issues with event listeners, custom handling of class
and style
bindings and a few more caused by some of my decisions.
Published by damianstasik over 4 years ago
Nothing new, just package updates for both svg-to-vue
and vue-svg-loader
to keep everything up-to-date.
Published by damianstasik about 6 years ago
svg-to-vue
, so that it can also be used by rollup-plugin-vue-svg
.functional
.Published by damianstasik about 6 years ago
svgo
to false
)svgo
to v1.1.1
vuepress
to v0.14.4
vue-tabs-component
to v1.5.0
Published by damianstasik about 6 years ago
class
/style
merging behavior for functional
SVG componentsPublished by damianstasik about 6 years ago
functional
components (Thank you @henriqemalheiros!)Published by damianstasik about 6 years ago
vuepress
and vue-template-compiler
Published by damianstasik about 6 years ago
toString
from the SVG component definitionPublished by damianstasik over 6 years ago
svgo
to v1.0.4 (#13, #16)svgo
configrender
function is not using with
statement anymore (#18)import TestIcon from 'icons/test.svg';
// This will display an absolute path to the icon above
console.log(TestIcon.toString());
Published by damianstasik almost 7 years ago
Published by damianstasik about 7 years ago
Published by damianstasik over 7 years ago
Initial release