gulp-awspublish-redirects
v1.0.0
Published
Define redirects for gulp-awspublish.
Downloads
10
Maintainers
Readme
gulp-awspublish-redirects
A plugin for defining redirects for gulp-awspublish.
Usage
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());
});
Installation
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
Dependencies
- 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.
License
BSD-3-Clause