Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Replaces script references with Google CDN ones
JavaScript
branch: master
Failed to load latest commit information.
.editorconfig tweaks
.gitattributes init
.gitignore init
.jshintrc tweaks
.travis.yml Update .travis.yml
bower.json fix tests for changes in the jquery package
index.js tweaks
license tweaks
package.json 2.0.0
readme.md Update readme.md
test.js tweaks

readme.md

gulp-google-cdn Build Status

Replaces script references with Google CDN ones

Issues with the output should be reported on the google-cdn issue tracker.

Install

$ npm install --save-dev gulp-google-cdn

Usage

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

gulp.task('default', function () {
    return gulp.src('index.html')
        .pipe(googlecdn(require('./bower.json')))
        .pipe(gulp.dest('dist'));
});

API

googlecdn(bowerConfig, [options])

bowerConfig

Required
Type: object

options

See the google-cdn options.

License

MIT © Sindre Sorhus

Something went wrong with that request. Please try again.