rollup-plugin-svg-to-vue

1.0.0 • Public • Published

Rollup Plugin SVG To Vue Build Status

A plugin roll svg files as a Vue 3 component.

Installation

npm install --save-dev rollup-plugin-svg-to-vue

Usage

config rollup.config.js

import svgToVue from 'rollup-plugin-svg-to-vue';
import vue from 'rollup-plugin-vue';
 
export default {
  plugins: [svgToVue(/* options */), vue()],
};

Options

{
  include: 'foo/**'; // default /\.svg$/
  exclude: ['bar/**', 'foobar/**']; // default []
  svgo: {
    /* svgo options*/
  } // default {}
  sourceMap: false; // default false
  target: 'browser'; // or 'node' for ssr
}

Package Sidebar

Install

npm i rollup-plugin-svg-to-vue

Weekly Downloads

56

Version

1.0.0

License

MIT

Unpacked Size

9.92 kB

Total Files

7

Last publish

Collaborators

  • jopz