3.0.2 • Published 6 years ago

fis3-deploy-qn v3.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

fis3 静态资源七牛 部署插件

FIS 部署七牛云存储插件,提供静态资源部署能力,CDN加速。

安装

全局安装或者本地安装都可以。

npm install fis3-deploy-qn or npm install fis3-deploy-qn -g

使用方法

也可以使用统一的 deploy 插件配置方法

 fis.match('*demo.html', {
            deploy: fis.plugin('qn', {
                ak: '********',  //Your qiniu Access Key
                sk: '******-1fwlrR',  //Your qiniu Secret Key
                bucket: 'static', //Your qiniu bucket
                overWrite:true,
                isShowLog:true,
                getKey:function (key) {
                    //默认key为文件路径,可以修改直接返回即可
                    return key.replace("/api/src/main/webapp/","");
                }

            })
        })
3.0.2

6 years ago

3.0.1

6 years ago

1.0.0

6 years ago