Create symlinks during your gulp build.
Installation
Install via npm:
npm install gulp-symlink --save-dev
Example
var gulp = require('gulp');
var symlink = require('gulp-symlink');
gulp.task('default', function() {
gulp.src('assets/some-large-video.mp4')
.pipe(symlink('build/videos'))
});
API
symlink(destinationString)
Pass a string of where you would like the symlink(s) to go.
symlink(targetDir, rename)
Symlinks each file in the stream into targetDir
renaming it according to
rename
. This function takes the source filename as its single parameter
and should return the desired target filename.