gulp-google-cdn

3.0.0 • Public • Published

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

Install

npm i gulp-google-cdn

DownloadsWeekly Downloads

4

Version

3.0.0

License

MIT

Last publish

Collaborators

  • sindresorhus