A plugin for defining redirects for gulp-awspublish.
const awsredirects = require('gulp-awspublish-redirects');
gulp.task('publish', function() {
const publisher = awspublish.create(/*...*/);
return gulp.src('./public/**/*')
.pipe(awsredirects({
'path/to/source.ext': 'path/to/target.ext',
}))
.pipe(publisher.publish());
});
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install gulp-awspublish-redirects --save
- from2: Convenience wrapper for ReadableStream, with an API lifted from "from" and "through2"
- to-through: Wrap a ReadableStream in a TransformStream.
- vinyl: Virtual file format.
BSD-3-Clause