atwood-cai / cdnplz

A tool to upload file to cdn.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cdnplz

A tool to upload file to cdn.

How to use?

const cdnplz = require('cdnplz');

try{
    cdnplz({
        tpl_suffix: 'jade',   //模板文件后缀名
        tpl_path: 'app/view', //模板根目录
        static_path: '.',  //静态资源的目录
        output_path: 'output/view/', //输出目录
        file_encoding: 'utf8', //文件编码
        cdn_provider: 'qiniu',
        plugins: {
            qiniu: {
                https: true
            }
        }
    });
}catch(e){
    console.log(e);
}

About

A tool to upload file to cdn.


Languages

Language:JavaScript 100.0%