1.0.5 • Published 1 year ago

vite-uniapp-qiniu v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

vite-plugin-qiniu

将打包好的静态资源上传至七牛

安装

npm install -D vite-plugin-qiniu

or 

yarn add -D vite-plugin-qiniu

使用

import vitePluginQiniu from 'vite-plugin-qiniu';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vitePluginQiniu({ 
      accessKey: '',
      secretKey: '', 
      bucket: '', 
      forceDelete: true
    }),
  ],
});

Options

NameTypeDefaultRequiredDescription
accessKeystring''true七牛 Access Key
secretKeystring''true七牛 Secret Key
bucketstring''true七牛 空间名
forceDeletebooleanfalsefalse上传文件前,先强制删除之前上传七牛云上的文件
rootNamestring'项目名称'false文件上传的根目录名称
isLogbooleanfalsefalse是否打印上传日志
1.0.5

1 year ago

1.0.4

1 year ago