rsbuild-svg-sprite-loader
v0.0.1
Published
rsbuild-svg-sprite-loader is a Rsbuild plugin to do something.
Downloads
10
Readme
rsbuild-svg-sprite-loader
rsbuild-svg-sprite-loader is a Rsbuild plugin to do something.
Usage
Install:
npm add rsbuild-svg-sprite-loader -D
Add plugin to your rsbuild.config.ts
:
// rsbuild.config.ts
import { pluginSvgSpriteLoader } from "rsbuild-svg-sprite-loader";
export default {
plugins: [
pluginSvgSpriteLoader({
path: join(__dirname, 'src/icons'),
symbolId: 'icon-[name]',
}),
],
};
Options
SvgSpriteLoaderOptions
Some description.
- path:
string
- symbolId:
string
- Example:
pluginSvgSpriteLoader({
path: join(__dirname, 'src/icons'),
symbolId: 'icon-[name]',
})
License
MIT.