vue-cli-plugin-svg-loader

Vue CLI plugin that adds vue-svg-loader to enable usage of SVG files as Vue components
1,265
Install
npm install vue-cli-plugin-svg-loader
Latest Version:1.1.1
License:MIT
Last Updated:Dec 8, 2020
Links: GitHub  ·  npm
Maintainer: casey6

vue-cli-plugin-svg-loader

Vue SVG Loader Plugin for vue-cli@3.0

Install

If you haven't yet installed vue-cli 3, first follow the install instructions here: https://github.com/vuejs/vue-cli

Generate a project

vue create my-app

Install the plugin

cd my-app
vue add svg-loader

Configuration can be done in vue.config.js.

module.exports = {
  pluginOptions: {
    svgLoader: {
      svgo: { plugins: [{ removeViewBox: false }, { removeXMLNS: true }] }
    }
  }
};

Related Packages

rollup-plugin-vue-inline-svg

convert svg files to optimised vue components

21,881
@4tw/vue-cli-plugin-svg-icon

Adds webpack rules to generate optimized svg sprites.

1,418 0
vue-svg-loader

Use SVG files as Vue Components

3,476,564 645
vue-wait

Vue Plugin for Global Loading Management

262,374 1,972

Version History

Version Released License
1.1.1 MIT
1.1.0 MIT
1.0.0 MIT