0.0.12 • Published 9 years ago

yandex-cdn v0.0.12

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
9 years ago

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.

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago