Gathering detailed insights and metrics for vite-plugin-element-plus
Gathering detailed insights and metrics for vite-plugin-element-plus
Gathering detailed insights and metrics for vite-plugin-element-plus
Gathering detailed insights and metrics for vite-plugin-element-plus
unplugin-element-plus
<p align="center"> <img width="300px" src="https://user-images.githubusercontent.com/10731096/95823103-9ce15780-0d5f-11eb-8010-1bd1b5910d4f.png"> </p>
vite-plugin-vue-element-plus-icon
a vite plugin to load svg icon for element-plus
vite-plugin-theme-element-plus
element theme plugin for vite
vite-plugin-element-plus-theme-next
适用于vite项目的element-plus的静态主题插件
This repo is for element-plus related Vite plugin
npm install vite-plugin-element-plus
Typescript
Module System
Node Version
NPM Version
TypeScript (70.76%)
JavaScript (29.24%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
15 Stars
17 Commits
1 Forks
13 Watchers
1 Branches
21 Contributors
Updated on Jan 28, 2023
Latest Version
0.0.12
Package Id
vite-plugin-element-plus@0.0.12
Unpacked Size
13.89 kB
Size
3.83 kB
File Count
7
NPM Version
7.0.14
Node Version
15.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
1
37
This repo is for element-plus related Vite plugin
1npm i vite-plugin-element-plus -D
vite.config.js:
1import importElementPlus from 'vite-plugin-element-plus' 2 3export default { 4 plugins: [ 5 importElementPlus(), 6 ], 7} 8 9// or 10export default { 11 plugins: [ 12 importElementPlus({ 13 useSource: true 14 }), 15 ], 16}
app code:
1import { ElButton } from 'element-plus' 2 3 ↓ ↓ ↓ ↓ ↓ ↓ 4 5import { ElButton } from 'element-plus' 6import 'element-plus/es/components/button/style/css'
useSource
1type UseSource = boolean
default: false
1// useSource: false 2import { ElButton } from 'element-plus' 3 4 ↓ ↓ ↓ ↓ ↓ ↓ 5 6import { ElButton } from 'element-plus' 7import 'element-plus/es/components/button/style/css' 8 9// useSource: true 10import { ElButton } from 'element-plus' 11 12 ↓ ↓ ↓ ↓ ↓ ↓ 13 14import { ElButton } from 'element-plus' 15import 'element-plus/es/components/button/style/index'
lib
Normally you wouldn't use this option but as a general option we exposed it anyway. When using this your bundle structure should be the same as ElementPlus. See unpkg.com for more information
1type Lib = string
default: 'element-plus'
1// lib: 'other-lib' 2import { ElButton } from 'other-lib' 3 4 ↓ ↓ ↓ ↓ ↓ ↓ 5 6import { ElButton } from 'other-lib' 7import 'other-lib/es/components/button/style/css'
1type Format = 'esm' | 'cjs'
default: 'esm'
esm for [lib]/es/components/*
cjs for [lib]/lib/components/*
This option is for which format to use
1// format: 'cjs' 2import { ElButton } from 'element-plus' 3 4 ↓ ↓ ↓ ↓ ↓ ↓ 5 6import { ElButton } from 'element-plus' 7import 'element-plus/lib/components/button/style/css'
1type Prefix = string
1// prefix = Al 2import { AlButton } from 'xx-lib'
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/10 approved changesets -- score normalized to 3
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More