一覧へ戻る
metafy-gg/rollup-plugin-svelte-svg(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin to transform SVGs into Svelte components.
- star 数
- 2
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2021/04/10
主要言語: JavaScript
Rollup plugin to transform SVGs into Svelte components.
Rollup plugin to transform SVGs into Svelte components.
It also optimizes your SVGs by running them thru svgo.
This package is not published to NPM at this point in time.
<script> import MyIcon from 'assets/my-icon.svg'; </script> <MyIcon width={42} height={42} />
const svelteSVG = require("rollup-plugin-svelte-svg"); // Sapper export default { client: { // ... plugins: [ svelteSVG({ svgoConfig: {}, ssr: false }); ] }, server: { // ... plugins: [ svelteSVG({ svgoConfig: {}, ssr: true }); ] } }
This plugin is based on the work from the following projects:
MIT