@zappdev/vite 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @zappdev/vite
|
|
2
2
|
|
|
3
3
|
Vite plugin for Zapp desktop apps. Handles worker discovery, source bundling, and output configuration so your Vite-based frontend integrates seamlessly with the Zapp native runtime.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
bun add -D @
|
|
8
|
+
bun add -D @zappdev/vite
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install -D @
|
|
12
|
+
npm install -D @zappdev/vite
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
@@ -17,16 +17,10 @@ npm install -D @zapp/vite
|
|
|
17
17
|
```ts
|
|
18
18
|
// vite.config.ts
|
|
19
19
|
import { defineConfig } from "vite";
|
|
20
|
-
import zapp from "@
|
|
20
|
+
import zapp from "@zappdev/vite";
|
|
21
21
|
|
|
22
22
|
export default defineConfig({
|
|
23
|
-
plugins: [
|
|
24
|
-
zapp({
|
|
25
|
-
outDir: "dist",
|
|
26
|
-
sourceRoot: "src",
|
|
27
|
-
minify: true,
|
|
28
|
-
}),
|
|
29
|
-
],
|
|
23
|
+
plugins: [zapp()],
|
|
30
24
|
});
|
|
31
25
|
```
|
|
32
26
|
|