yandex-cdn

0.0.12 • Public • Published

yandex-cdn

This is a plugin for grunt-google-cdn and gulp-google-cdn for replacing refs to resorces on the Yandex CDN.

Libraries supported (all latest versions):

Firstly do npm install --save-dev yandex-cdn.

How to use with gulp-google-cdn

Just pass this module to the cdn option of gulp-google-cdn task:

var gulp = require('gulp');

var googlecdn = require('gulp-google-cdn');

gulp.task('cdnify', function() {
    gulp.src('./*.html')
        .pipe(googlecdn(require('./bower.json'), {
            cdn: require('yandex-cdn')
        }))
        .pipe(gulp.dest('dist'));
});


gulp.task('default', ['cdnify']);

How to use with grunt-google-cdn

Same as for gulp, just pass this module to the cdn option for cdnify task:

cdnify: {
    options: {
        cdn: require('yandex-cdn')
    },
    dist: {
        html: ['./dist/*.html']
    },
}

You can also look at the example.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.122latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.122
0.0.111
0.0.104
0.0.91
0.0.81
0.0.71
0.0.61
0.0.41
0.0.31

Package Sidebar

Install

npm i yandex-cdn

Weekly Downloads

13

Version

0.0.12

License

BSD-2-Clause

Last publish

Collaborators

  • alexeimoisseev