rollup-svg-sprite-loader

Import SVG files into sprite

Usage no npm install needed!

<script type="module">
  import rollupSvgSpriteLoader from 'https://cdn.skypack.dev/rollup-svg-sprite-loader';
</script>

README

rollup-svg-sprite-loader

Import SVG files into sprite

Installation

npm install --save-dev rollup-svg-sprite-loader

Usage

// rollup.config.js
import svgSpriteLoader from 'rollup-svg-sprite-loader';

export default {
  entry: 'src/index.js',
  dest: 'dist/my-lib.js',
  plugins: [
    svgSpriteLoader()
  ]
};