1.0.0 • Published 6 years ago

gulp-awspublish-redirects v1.0.0

Weekly downloads
51
License
BSD-3-Clause
Repository
github
Last release
6 years ago

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