-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1 @@ | ||
# element-plus-vite-starter | ||
|
||
> A starter kit for Element Plus with Vite | ||
- Preview: <https://vite-starter.element-plus.org> | ||
|
||
This is an example of on-demand element-plus with [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components). | ||
|
||
> If you want to import all, it may be so simple that no examples are needed. Just follow [quickstart | Docs](https://element-plus.org/zh-CN/guide/quickstart.html) and import them. | ||
If you just want an on-demand import example `manually`, you can check [unplugin-element-plus/examples/vite](https://github.com/element-plus/unplugin-element-plus/tree/main/examples/vite). | ||
|
||
## Project setup | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
### Compiles and minifies for production | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
## Usage | ||
|
||
```bash | ||
git clone https://github.com/element-plus/element-plus-vite-starter | ||
cd element-plus-vite-starter | ||
npm i | ||
npm run dev | ||
``` | ||
|
||
### Custom theme | ||
|
||
See `src/styles/element/index.scss`. | ||
New website version |