gulp-bower icon indicating copy to clipboard operation
gulp-bower copied to clipboard

bower install --production doesn't work

Open jaichandra opened this issue 7 years ago • 5 comments

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'.

jaichandra avatar Nov 21 '16 15:11 jaichandra

try [null,['--production']]

dont ask why

evestraw avatar Dec 19 '16 12:12 evestraw

@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']]);
});

amitse avatar Jun 01 '17 05:06 amitse

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

evestraw avatar Jun 01 '17 11:06 evestraw

i believe it might be gulp.task('bower:prod', function () { return bower(null, ['--production']); }); @amitse

evestraw avatar Jun 01 '17 11:06 evestraw

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

jbogdani avatar Jun 27 '17 19:06 jbogdani