vite-plugin-svg4vue
Version:
A vite plugin which can transform svg icon to vue component, support optimization via SVGO, easy to customize svg color and size.
80 lines • 1.99 kB
JSON
{
"name": "vite-plugin-svg4vue",
"version": "4.5.0",
"description": "A vite plugin which can transform svg icon to vue component, support optimization via SVGO, easy to customize svg color and size.",
"type": "module",
"main": "lib/index.cjs.js",
"module": "lib/index.esm.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.esm.js",
"require": "./lib/index.cjs.js"
},
"./client": "./client.d.ts",
"./*": [
"./*",
"./*.d.ts"
]
},
"files": [
"lib",
"client.d.ts",
"types"
],
"scripts": {
"dev": "rollup -c -w",
"build": "rollup -c",
"release": "npm run build && changelogen --release && npm publish --access=public && git push --follow-tags"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yisibell/vite-plugin-svg4vue.git"
},
"keywords": [
"vite",
"vite-plugin",
"vue",
"svg",
"svgo",
"svg-component",
"svg-icon",
"icon",
"vite-svg-loader"
],
"author": {
"name": "elenh",
"email": "yisiwings@163.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/yisibell/vite-plugin-svg4vue/issues"
},
"homepage": "https://github.com/yisibell/vite-plugin-svg4vue#readme",
"devDependencies": {
"@eslint/js": "^9.18.0",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-typescript": "^12.1.2",
"changelogen": "~0.5.7",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"prettier": "^3.4.2",
"rollup": "^4.31.0",
"rollup-plugin-dts": "^6.1.1",
"tslib": "^2.8.1",
"typescript": "~5.7.3",
"typescript-eslint": "^8.21.0",
"vite": "~6.0.11",
"vue": "^3.5.13"
},
"dependencies": {
"defu": "^6.1.4",
"ohash": "^2.0.11",
"svgo": "^3.3.2",
"svgo-extra": "2.3.2",
"ufo": "^1.5.4"
}
}