A gulp plugin for replacing local path with cdn absolute path
npm install --save-dev gulp-cdn-absolute-path
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'));
});