Skip to content

added optional settings to manipulate the destination path#9

Open
nd0 wants to merge 1 commit intoicfnext:masterfrom
nd0:master
Open

added optional settings to manipulate the destination path#9
nd0 wants to merge 1 commit intoicfnext:masterfrom
nd0:master

Conversation

@nd0
Copy link

@nd0 nd0 commented Oct 9, 2017

Hi Mike,

First of all, thanks for this great package!
I added two optional settings to control the destination path.

For expample a given file /my/path/main.js should uploaded to /etc/designs/myproject/clientlib-site/main.js.

var src = '/my/path';
gulp.task('watch', function() {
    gulp.watch(src + '/**/*', function(e) {
        return gulp.src()
            .pipe(slang({
                base: src,
                dest: '/etc/designs/myproject/clientlib-site'
            }));
    });
});

Best regards
Nils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant