I how do I fix dependency order using browserify?
I'm using browserify in order to use the "require" functions in my gulpfile. In my main javascript file I am loading a project called "tippy.js" using require().
I am getting an error stating that it doesn't understand the reference to "tippy" and I believe it's a dependency issue.
How do I deal with dependecy order using browserify? I understand how to do it without browserify involved,with the deporder package. But I don't understand this annoying "stream" issue and I haven't been able to take a browserify stream and run through deporder.
This is my gulpfile.js code:
return browserify("./" + folder.dev + "js/script.js")
.bundle()
.pipe(source("app.js"))
.pipe(gulp.dest(folder.dist + "js/"));
Here's a link to the page, in a wordpress theme, that shows the reference error: