Skip to content

Commit 05c9f26

Browse files
committed
update doc
1 parent 1a0b101 commit 05c9f26

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ The github action is included in this sample, you can use it to publish your new
204204
205205
## How to remove svelte dependencies
206206
207+
> Pure vite without svelte: https://github.com/frostime/plugin-sample-vite
208+
207209
This plugin is packaged in vite and provides a dependency on the svelte framework. However, in practice some developers may not want to use svelte and only want to use the vite package.
208210
209211
In fact you can use this template without using svelte without any modifications at all. The compilation-related parts of the svelte compilation are loaded into the vite workflow as plugins, so even if you don't have svelte in your project, it won't matter much.

README_zh_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ PR 社区集市仓库。
195195
196196
## 如何去掉 svelte 依赖
197197
198+
> 无 Svelte 依赖版: https://github.com/frostime/plugin-sample-vite
199+
198200
本插件使用 vite 打包,并提供了 svelte 框架依赖。不过实际情况下可能有些开发者并不想要 svelte,只希望使用 vite 打包。
199201
200202
实际上你可以完全不做任何修改,就可以在不使用 svelte 的前提下使用这个模板。与 svelte 编译的编译相关的部分是以插件的形式载入到 vite 的工作流中,所以即使你的项目里面没有 svelte,也不会有太大的影响。

0 commit comments

Comments
 (0)