0.0.6 • Published 11 months ago

vite-plugin-qiniu-cdn v0.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

vite-plugin-qiniu-cdn

vite 打包完成后上传七牛插件

Build Status CircleCI npm version npm downloads npm downloads npm license PRs Welcome

使用方法

Installation

npm

$ npm i vite-plugin-qiniu-cdn -dev

yarn

$ yuarn add vite-plugin-qiniu-cdn -D

Usage

vite.config.js:

import vitePluginQiniuCdn from 'vite-plugin-qiniu-cdn'

export default defineConfig({
  plugins: [
    vitePluginQiniuCdn({
      enable: true,
      accessKey: 'accessKey', // 七牛账号accessKey
      secretKey: 'secretKey', // 七牛账号secretKey
      exclude: /index\.html$|manifest\.[0-9a-zA-Z]+\.js$/, // 排除的文件
      bucket: 'bucket', //七牛空间
      path: 'vite-plugin-qiniu/online/', //七牛空间下的路径

    })
  ]
})
0.0.3

11 months ago

0.0.2

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.6

11 months ago

0.0.1

2 years ago