vue-svg-loader

🔨 webpack loader that lets you use SVG files as Vue components

MIT License

Stars
640
Committers
10

Bot releases are hidden (Show)

vue-svg-loader - v0.17.0-beta.2 Latest Release

Published by damianstasik about 4 years ago

  • Updated non-direct dependencies
  • Fixed issue with missing SVGO
  • Moved docs dependencies out to a separate package.json
  • Reduced memory footprint by importing specific function from semver package
vue-svg-loader - v0.17.0-beta.0

Published 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.

vue-svg-loader - v0.16.0

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.

vue-svg-loader - v0.11.0

Published by damianstasik about 6 years ago

  • Moved the logic to a separate package: svg-to-vue, so that it can also be used by rollup-plugin-vue-svg.
  • Generated components:
    • use ESM export format to take advantage of webpack's dead-code detection,
    • are now set as functional.
  • Updated non-direct dependencies.
vue-svg-loader - v0.10.0

Published by damianstasik about 6 years ago

  • Added option to disable SVGO (set svgo to false)
  • Refactored loader code
  • Updated packages:
    • svgo to v1.1.1
    • vuepress to v0.14.4
    • vue-tabs-component to v1.5.0
    • ... and a lot non-direct dependencies
vue-svg-loader - v0.9.0

Published by damianstasik about 6 years ago

  • Added class/style merging behavior for functional SVG components
vue-svg-loader - v0.8.0

Published by damianstasik about 6 years ago

  • Added ability to use SVG's as functional components (Thank you @henriqemalheiros!)
vue-svg-loader - v0.7.0

Published by damianstasik about 6 years ago

  • Upgrade vuepress and vue-template-compiler
vue-svg-loader - v0.6.0

Published by damianstasik about 6 years ago

  • Removed the toString from the SVG component definition
vue-svg-loader - v0.5.0

Published by damianstasik over 6 years ago

  • Upgraded svgo to v1.0.4 (#13, #16)
  • Removed useless svgo config
  • Refactored compiler code - render function is not using with statement anymore (#18)
  • Changed how imported SVG file path can be retrieved, which helped simplify code a bit (#14)
import TestIcon from 'icons/test.svg';

// This will display an absolute path to the icon above
console.log(TestIcon.toString());
vue-svg-loader - v0.3.0

Published by damianstasik almost 7 years ago

  • Added ability to customize options passed to SVGO (thanks @matpeder!)
vue-svg-loader - v0.2.0

Published by damianstasik about 7 years ago

  • Fixed issue with SSR by using template compiler to render components (thanks @4ver!)
  • Updated SVGo dependency
vue-svg-loader - v0.1.2

Published by damianstasik over 7 years ago

Initial release