Skip to content

treeandgrass/upload-nuxt-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

upload-nuxt-hook

npm i -D upload-nuxt-hook

使用

npm install upload-nuxt-hook

在nuxt.config.js中配置

const UploadPlugin = require('upload-nuxt-hook')
async 'generate:done'() {
     await new UploadPlugin({
       root: './dist',
       filterExts: ['.gif', '.js' , '.mp4', '.html', '.css', '.json', '.jpeg', '.png', '.svg', '.ttf', '.eot', '.jpg', '.ico'],
       delayTime: 3000,
       accessId: '',
       secretKey: '',
       endpoint: '',
       port: ,
       bucket: ''
     }).execute()
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published