Skip to content

⚒️ Vue CLI plugin that adds vue-svg-loader to enable usage of SVG files as Vue components

Notifications You must be signed in to change notification settings

caseyjacobson/vue-cli-plugin-svg-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-cli-plugin-svg-loader

Vue SVG Loader Plugin for [email protected]

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 }] }
    }
  }
};

About

⚒️ Vue CLI plugin that adds vue-svg-loader to enable usage of SVG files as Vue components

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published