Skip to content

anhulife/gulp-cdn-absolute-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-cdn-absolute-path

A gulp plugin for replacing local path with cdn absolute path

Install

npm install --save-dev gulp-cdn-absolute-path

Examples

var gulp = require('gulp');
var cdnAbsolutePath = require('gulp-cdn-absolute-path');

gulp.task('cdn-absolute-path', function () {
	gulp.src('template/**/*.html')
		.pipe(cdnAbsolutePath({asset: 'static', cdn: 'http://www.a.com'}))
		.pipe(gulp.dest('template'));
});

About

A gulp plugin for replacing local path with cdn absolute path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published