File tree 2 files changed +35
-4
lines changed
2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
This is a compression plugin for vite. Use node stream.
4
4
5
+ ## Install
6
+
7
+ ``` bash
8
+
9
+ $ yarn add vite-compression-plugin -D
10
+
11
+ # or
12
+
13
+ $ npm install vite-compression-plugin -D
14
+
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ``` js
20
+ import { defineConfig } from ' vite'
21
+
22
+ import Compression from ' vite-compression-plugin'
23
+
24
+ export default defineConfig ({
25
+ plugins: [
26
+ // ...your plugin
27
+ Compression ()
28
+ ]
29
+ })
30
+ ```
31
+
5
32
## Options
6
33
7
34
| params | type | default | description |
@@ -20,3 +47,7 @@ This is a compression plugin for vite. Use node stream.
20
47
## Author
21
48
22
49
Kanno
50
+
51
+ ```
52
+
53
+ ```
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vite-compression-plugin" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"description" : " compress souce file by stream, use it in vite." ,
5
5
"main" : " dist/vite-compression-plugin.cjs.js" ,
6
6
"types" : " dist/vite-compression-plugin.d.ts" ,
15
15
],
16
16
"repository" : {
17
17
"type" : " git" ,
18
- "url" : " git+https://github.com/XeryYue/k .git"
18
+ "url" : " git+https://github.com/XeryYue/vite-compression-plugin .git"
19
19
},
20
20
"keywords" : [],
21
21
"author" : " Kanno" ,
22
22
"license" : " MIT" ,
23
23
"bugs" : {
24
- "url" : " https://github.com/XeryYue/k /issues"
24
+ "url" : " https://github.com/XeryYue/vite-compression-plugin /issues"
25
25
},
26
- "homepage" : " https://github.com/XeryYue/k #readme" ,
26
+ "homepage" : " https://github.com/XeryYue/vite-compression-plugin #readme" ,
27
27
"devDependencies" : {
28
28
"@microsoft/api-extractor" : " ^7.19.4" ,
29
29
"@rollup/plugin-node-resolve" : " ^13.1.3" ,
You can’t perform that action at this time.
0 commit comments