vite-plugin-svg-icons/LICENSE Version: 1.07 kBPlain TextView Raw 1 MIT License 2 3 Copyright (c) 2021-present, Vben 4 5 Permission is hereby granted, free of charge, to any person obtaining a copy 6 of this software and associated documentation files (the "Software"), to deal...
import{createSvgIconsSsrPlugin}from'vite-plugin-svg-icons-ssr'importpathfrom'path'exportdefault()=>{return{plugins:[createSvgIconsSsrPlugin({// 指定需要缓存的图标文件夹iconDir:path.resolve(process.cwd(),'src/icons'),// 指定 symbolId 格式symbolIdTemplate:'icon-[dir]-[name]'})]}} ...
vite-plugin-svg-icons/dist/index.d.ts Version: 1.76 kBTypeScriptView Raw 1 import { Plugin } from 'vite'; 2 import { OptimizeOptions } from 'svgo'; 3 4 declare type DomInject = 'body-first' | 'body-last'; 5 interface ViteSvgIconsPlugin { ...
svg-preview-plugin 说明:解决项目中 svg 文件过多,不好同意查看管理的问题(支持 vite 和 webpack) vite vite-plugin-svg-icons svg svg-sprite-loader webpack webpack-plugin preview svg-preview lishaobos •0.6.0•2 years ago•0dependents•ISCpublished version0.6.0,2 years ago0dependentslicense...
import{ createSvgIconsPlugin }from'vite-plugin-svg-icons'importpathfrom'path'exportdefault() => {return{ plugins: [ createSvgIconsPlugin({// Specify the icon folder to be cachediconDirs: [path.resolve(process.cwd(),'src/icons')],// Specify symbolId formatsymbolId:'icon-[dir]-[name]',...
yarn add vite-plugin-svg-icons -D 或者 npm i vite-plugin-svg-icons -D 用法 vite.config.ts中的配置插件 import viteSvgIcons from 'vite-plugin-svg-icons' ; import path from 'path' ; export default ( ) => { return { plugins : [ viteSvgIcons ( { ...
Cancel Create saved search Sign in Sign up Reseting focus {{ message }} digitalacorn / vite-plugin-svg-icons Public forked from vbenjs/vite-plugin-svg-icons Notifications You must be signed in to change notification settings Fork 3 ...
安装vite-plugin-svg-icons:在终端中输入命令 npm install vite-plugin-svg-icons -D。 在您的 vite.config.js 文件中添加以下代码: import svgIcons from 'vite-plugin-svg-icons'; export default { plugins: [ svgIcons({ // 配置选项 }), ], }; ...
import{createSvgIconsPlugin}from'vite-plugin-svg-icons'importpathfrom'path'exportdefault()=>{return{plugins:[createSvgIconsPlugin({// 指定需要缓存的图标文件夹iconDirs:[path.resolve(process.cwd(),'src/icons')],// 指定symbolId格式symbolId:'icon-[dir]-[name]',/*** 自定义插入位置* @default...
Vite Plugin for fast creating SVG sprites. Contribute to digitalacorn/vite-plugin-svg-icons development by creating an account on GitHub.