S
S
sergcen2015-10-29 12:40:42
gulp.js
sergcen, 2015-10-29 12:40:42

What is the best way to include bower dependencies via gulp-browserify?

At the moment I know two options with:
1) debowerify
2) browserify-shim
Disadvantages:
debowerify - does not read overrides from bower.json, there is a fork that fixes this, but still
browserify-shim - you need to manually write paths
Is there any other any way to include dependencies from bower? How do you do it in your projects?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-10-29
@k12th

This is not quite an answer in essence, but a tip: if you install dependencies through npm, then all the problems come down to not typing in the call require('jquery'):) browserify is still sharpened for use with npm (and bower is better friends with requirejs).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question