rollup-plugin-vue-unoptimized-inline-svg

1.0.0 • Public • Published

rollup-plugin-vue-inline-svg

A simpler plugin to import svg files as vue components. This is intended to be used with rollup-plugin-vue and is based on vue-svg-loader.

A version of rollup-plugin-vue-inline-svg without SVGO.

installation

npm install --save-dev rollup-plugin-vue-unoptimized-inline-svg

usage

rollup.config.js

import svg from 'rollup-plugin-vue-inline-svg';
import vue from 'rollup-plugin-vue'; // optional

export default {
  // ...
  plugins: [
    svg(config)
    vue(), // optional
  ]
}

config

By default this plugin will attempt to transform all files that end with the extension .svg. You can be more explicit by passing include and exclude options.

// `include` and `exclude` can each be a minimatch
// pattern, or an array of minimatch patterns, relative to process.cwd()
{
  include: string or array of minimatch,
  exclude: string or array,
}

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-vue-unoptimized-inline-svg

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

5.51 kB

Total Files

6

Last publish

Collaborators

  • cassandra-torske