vue-cli-plugin-svg-loader

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i vue-cli-plugin-svg-loader

Weekly Downloads

62

Version

1.1.1

License

MIT

Unpacked Size

1.88 kB

Total Files

5

Last publish

Collaborators

  • casey6