NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack

I'm trying to summarize my knowledge about the most popular JavaScript package managers, bundlers, and task runners. Please correct me if I'm wrong: npm & bower are package managers. They just...

Browserify - How to call function bundled in a file generated through browserify in browser

I am new to nodejs and browserify. I started with this link . I have file main.js which contains this code var unique = require('uniq'); var data = [1, 2, 2, 3, 4, 5, 5, 5,...

How to uglify output with Browserify in Gulp?

I tried to uglify output of Browserify in Gulp, but it doesn't work. gulpfile.js var browserify = require('browserify'); var gulp = require('gulp'); var uglify =...

How to get minified output with browserify?

Just started to use browserify, but I cannot find documentation for how to get it spilling out minified output. So I am looking something like: $> browserify main.js > bundle.js --minified

Browserify - multiple entry points

I am using Browserify within gulp. I am trying to compile down my tests to a single file as well. But unlike my main app, which I have working just fine, I am having trouble getting the tests to...

browserify and browserify-shim, do we really need browserify-shim?

I am trying to figure out what the difference between browserify and browserify-shim. After reading a few tutorial, the only difference I found that is to make required function or libraries to...

Browserify + browserify-ngannotate + Tsify not working

I'm using gulp with browserify and tsify. This has been working quite well. Then I decided to add ng-annotate using browserify-ngannotate. I've added the ng-annotate browserify transform but it...

browserify + browserify-shim angular global

I am including angular js from the google cdn via a script tag on the index page. I have the following in my package.json: "browserify": { "transform": [ ...

Is Crypto-Browserify and Browserify-Zib necessary when Bunlding with Browserify?

I used browserify to bundle my code, and it works fine. But the bundle size is very large. I used disc to check the bundle size and found that Crypto-Browserify and Browserify-Zib takes up almost...

Browserify with twitter bootstrap

There are many similar questions including answers here on stack overflow, but none of them have worked for me, so here I am asking you guys. I appreciate everyone's time. I recently started...

browserify error /usr/bin/env: node: No such file or directory

I installed node js and npm via apt-get install and all of the dependencies, then I installed browserify npm install browserify -g it goes through the process and it seems like it installed...

What does "browserify": { "transform": [ "browserify-shim" ] } mean?

I know what browserify is and what browserify-shim is for. But I dont understand the syntax. I have already specified below one in the package.json "browserify-shim": { ...

Configure a generic jQuery plugin with Browserify-shim?

I'm using browserify-shim and I want to use a generic jQuery plugin. I have looked over the Browserify-shim docs multiple times and I just can't seem to understand what's going on and/or how it...

Browserify with require('fs')

I was trying to use browserify on a file that uses the fs object. When I browserify it, the call to require('fs') doesn't get transformed and require returns {}. Is there any workaround...

Browserify + TypeScript

Good day everyone. I try to build my web project with Gulp. I want use TypeScript and I want ruling dependencies with browserify. But I have some trouble with it. I use next code for build: var...

How can I browserify nodejs's browserify?

I've tried browserify -r browserify But I get the following error: Error: Cannot find module 'brfs' Is there a version of browserify that can work in the browser?

Gulp + browserify + 6to5 + source maps

I'm trying to write a gulp task allowing me to use modules in JS (CommonJS is fine), using browserify + 6to5. I also want source mapping to work. So: 1. I write modules using ES6 syntax. 2....

Browserify Ember.js 1.7

The latest 1.7 Ember beta breaks my gulp-browserify task (config below) with the following exception: Error: browserify-shim needs to be passed a proper browserify instance as the first...

Browserify requires vendor module built with Browserify

I'm having problem with Browserify requiring a vendor library. The vendor library I'm using is better-dom, which is also built with Browserify. I installed it from bower and when I'm trying to...

Browserify External Requires with Grunt-Browserify

The Browserify docs section on external requires shows how to make a module within a bundle available to the global environment: browserify -r through -r duplexer -r ./my-file.js:my-module >...

Gulp + browserify example (without gulp-browserify)

Now that gulp-browserify is no longer supported I am looking for a simple tutorial how to now use browserify with gulp. This seems like an option, but it's still quite complex. Any pointers would...

Generating source maps from browserify using grunt

I have followed the instructions here: https://www.npmjs.org/package/grunt-browserify, to try and set up source maps for browserify on grunt. The options for browserify in my gruntfile are :...

Browserify DataTables

I tried following the instructions at NPM packages - DataTables but I still can't get it to bundle with Browserify. Here is my minimal, complete, and verifiable example: app.js 'use...

Browserify, shim different libraries in different browserify builds

I am using browserify + grunt to produce two separate JS outputs, a clientside and a serverside version of my app. eg. gruntfile.js browserify: { server: { files: {...

Error using karma-browserify with browserify-shim

I'm trying to use karma-browserify together with browserify-shim with no success. Here is a repo to reproduce the error: https://github.com/pelizza/karma-browserify-shim PhantomJS 2.1.1 (Mac OS X...

Cannot find module 'browserify'

I'm getting this error: > Error: Cannot find module 'browserify' When I add this line to my app/server.js file: var browserify = require('browserify'); Now I'm still new to Node, but I...

Browserify with already browserified files

Using browserify, I'm attempting to require an already browserified module, but the bundle is not able to resolve the module that has already been browserified. For example, I have a file...

gulp, browserify, maps?

How do I enable source maps? I'm doing this: var browserify = require("gulp-browserify") gulp.task("compile:client", function() { ...

using jquery with browserify

I am trying to use jQuery with browserify with the module jquery-browserify. I required the module in my client.js script as such: var $ = require('jquery-browserify'); and when I...

What is the difference between browserify/requirejs modules and ES6 modules

I'm still new to ES6 and module loaders and I'm currently looking at combining a browserify setup with ES6. I was wondering if I would still need browserify/requirejs if I'm using ES6 modules....