Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

sindresorhus/gulp-google-cdn

Repository files navigation

gulp-google-cdn

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');

exports.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.

About

Replaces script references with Google CDN ones

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •