stc-cdn-qiniu
stcjs cdn adapter for qiniu
Install
npm install stc-cdn-qiniu --save-dev
How to Use
in stc.config.js
file, add:
var cdn = ;var qiniuAdapter = ; stc;
More options
in options.key
, canuse String or Function;
if key is string, can replace [hash]
, [ext]
, [root]
, [dir]
, [base]
, [name]
to real string, eg: [hash][ext]
maybe replace to .css
.
if key is function, can receive params
argument, it like:
The key can use the function return string;