gulp-bower
gulp-bower copied to clipboard
bower install --production doesn't work
Below code doesn't work:
gulp.task('myTskName', function() {
return bower({directory: './docs/bower_components', cmd: 'install'}, '--production');
});
I did refer to #52, but it didn't work with '--production'.
try [null,['--production']]
dont ask why
@evestraw : Can you give an example code on how to use it, can't seem to get it work.
gulp.task('bower:prod', function () {
return bower({}, [null, ['--production']]);
});
I no longer use bower and can't remember in what repo i used it, i do remember having to follow the code back from gulp-bower to regular power to see how to find the correct syntax
i believe it might be
gulp.task('bower:prod', function () { return bower(null, ['--production']); });
@amitse
Hello,
I'm trying to pass --force
argument with no success; I've tried to pass --force
or force
as second argument, both as array or string but it does not work.
What is the correct (and working) way to add arguments? Thank you