gulp-highwinds-cdn
v0.1.0
Published
A plugin for Gulp that handles purging for Highwinds CDN
Downloads
322
Readme
gulp-highwinds-cdn
Highwinds CDN plugin for gulp.
Install
npm install --save-dev gulp-highwinds-cdn
Config
Setup a highwinds.json
file or load these through another config file or env vars.
{
"username": "HIGHWINDS-USERNAME",
"password": "HIGHWINDS-PASSWORD",
"accountId": "HIGHWINDS-ACCOUNT-ID",
"url": "URL-TO-PURGE"
}
Usage
var fs = require('fs');
var gulp = require('gulp');
var cdn = require("gulp-highwinds-cdn");
var highwinds = JSON.parse(fs.readFileSync('./highwinds.json'));
gulp.task('cdn-purge', function() {
cdn(highwinds);
});