update doc

This commit is contained in:
frostime 2023-09-16 18:37:00 +08:00
parent 1a0b1018c5
commit 05c9f269e2
2 changed files with 4 additions and 0 deletions

View file

@ -204,6 +204,8 @@ The github action is included in this sample, you can use it to publish your new
## How to remove svelte dependencies
> Pure vite without svelte: https://github.com/frostime/plugin-sample-vite
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.
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.

View file

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