File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 11/node_modules
22/dist
3+ /lib
Original file line number Diff line number Diff line change 33 "version" : " 0.0.1" ,
44 "description" : " vue-lazy-load-image-component" ,
55 "type" : " module" ,
6+ "main" : " lib/index.js" ,
67 "scripts" : {
78 "dev" : " vite" ,
89 "build" : " vite build" ,
1213 "keywords" : [],
1314 "author" : " " ,
1415 "license" : " ISC" ,
16+ "files" : [" lib" ],
1517 "dependencies" : {
1618 "@vitejs/plugin-vue" : " ^4.2.1" ,
1719 "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'
55export default defineConfig ( {
66 plugins : [ vueJsx ( ) ] ,
77 build : {
8+ // 打包css到lib文件夹
9+
810 lib : {
911 entry : 'src/index.ts' ,
1012 name : 'vue-lazy-load-image-component' ,
1113 fileName : 'index' ,
1214 formats : [ 'es' ] ,
1315 } ,
16+
1417 rollupOptions : {
1518 external : [ 'vue' ] ,
1619 output : {
20+ dir :'lib' ,
1721 globals : {
1822 vue : 'Vue'
1923 }
You can’t perform that action at this time.
0 commit comments