File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
/node_modules
2
2
/dist
3
+ /lib
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"description" : " vue-lazy-load-image-component" ,
5
5
"type" : " module" ,
6
+ "main" : " lib/index.js" ,
6
7
"scripts" : {
7
8
"dev" : " vite" ,
8
9
"build" : " vite build" ,
12
13
"keywords" : [],
13
14
"author" : " " ,
14
15
"license" : " ISC" ,
16
+ "files" : [" lib" ],
15
17
"dependencies" : {
16
18
"@vitejs/plugin-vue" : " ^4.2.1" ,
17
19
"eslint" : " ^8.40.0" ,
Original file line number Diff line number Diff line change @@ -5,15 +5,19 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
5
5
export default defineConfig ( {
6
6
plugins : [ vueJsx ( ) ] ,
7
7
build : {
8
+ // 打包css到lib文件夹
9
+
8
10
lib : {
9
11
entry : 'src/index.ts' ,
10
12
name : 'vue-lazy-load-image-component' ,
11
13
fileName : 'index' ,
12
14
formats : [ 'es' ] ,
13
15
} ,
16
+
14
17
rollupOptions : {
15
18
external : [ 'vue' ] ,
16
19
output : {
20
+ dir :'lib' ,
17
21
globals : {
18
22
vue : 'Vue'
19
23
}
You can’t perform that action at this time.
0 commit comments