Skip to content

ponday-dev/rollup-plugin-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ponday/rollup-plugin-svg

Rollup plugin to import SVG files on JavaScript / TypeScript

Installation

npm install --save-dev @ponday/rollup-plugin-svg

Usage

Import and add this plugin to plugins option.

import svg from '@ponday/rollup-plugin-svg';

export default {
  entry: 'src/input.js',
  dest: 'dist/output.js',
  plugins: [
    svg()
  ]
};

Options

You can use following options.

format

value: text or base64 (default: text)

Import format. SVG files will format to base64 before import if you specify base64.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published