gulp-nbugs-ship-cdn
v1.0.0
Published
gul plugin of nbugs tool to ship web assets to the CDN mirror server
Downloads
2
Readme
gulp-nbugs-ship-cdn
gulp plugin to ship web assets to CDN mirror server
Install
$ npm install --save-dev gulp-nbugs-ship-cdn
Usage
var gulp = require('gulp');
var shipCDN = require('gulp-nbugs-ship-cdn');
var pkg = require('./package.json');
gulp.task('default', function () {
return gulp.src('src/*.css')
.pipe(shipCDN({
url: 'http://ship-cdn-endpoint',
name: pkg.name,
version: pkg.version
}));
});
API
shipCDN(options)
options
url
Type: String
CDN mirror server endpoint
name
Type: String
project name
version
Type: String
project version
key
Type: String
Default: ''
sign key used to encrypt with private key
force
Type: Boolean
Default: false
wheather overwrite the exist file in mirror server
Reference
License
MIT © nbugs