Replaces script references with Google CDN ones
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fixtures
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
index.js
license
package.json
readme.md
test.js

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

const gulp = require('gulp');
const googleCdn = require('gulp-google-cdn');

gulp.task('default', () =>
	gulp.src('index.html')
		.pipe(googleCdn(require('./bower.json')))
		.pipe(gulp.dest('dist'))
);

API

googleCdn(bowerConfig, [options])

bowerConfig

Type: Object

options

Type: Object

See the google-cdn options.

License

MIT © Sindre Sorhus