Questions tagged [grunt-browserify]

Grunt task for node-browserify.

Grunt task for node-browserify.:

https://github.com/jmreidy/grunt-browserify

49 questions
1
vote
1 answer

Include Vue runtime separately than single file component with Browserify

I am currently building my .vue files into single file components with Browserify. The only problem with this is each SFC includes the Vue runtime into the file causing the filesize to be much larger than it needs to be since the Vue runtime is …
marcusds
  • 784
  • 1
  • 7
  • 26
1
vote
0 answers

Incremental upgrade of SPA from Angular 1.5 to 2

I followed https://angular.io/docs/ts/latest/guide/upgrade.html# to use UpgradeModule from '@angular/upgrade/static'. Grunt-ts is used to transpile the TypeScript files. The app also uses grunt-browserify for compilation. When grunt is run, it…
othanda
  • 51
  • 1
  • 3
1
vote
0 answers

Ignore Dependency with grunt-browserify

I am "requiring" Malsups Cycle2 library into a project which depends on jQuery however, I want to exclude jQuery from being bundled as I will be including this separately. Currently my package.json has: ... "dependencies": { …
Zakalwe
  • 1,444
  • 3
  • 14
  • 25
1
vote
0 answers

shimming linkurious - how to configure?

I'm trying to use the linkurious library (a sigma fork), which provides a "main": "dist/sigma.require.js" (in the package.json). this allows me to do: var sigma = require('linkurious'); however, the plugins are not included so I have to require…
ekkis
  • 9,804
  • 13
  • 55
  • 105
1
vote
1 answer

grunt-browserify Path must be a string error

I'm trying to run grunt-browserify. I keep getting the "path must be a string" error. Here's my browserify task: browserify: { dist: { files: { "build/Hotspot.js" : ["lib/**/*.js"] }, options: { …
apizzimenti
  • 427
  • 2
  • 7
  • 19
1
vote
1 answer

Grunt browserify fails when requiring react-bootstrap-typeahead

I'm trying to in include https://www.npmjs.com/package/react-bootstrap-typeahead in my project, but when I run my grunt browserify task, I get a ParseError: Unexpected token error. Full message here: Running "browserify:dist" (browserify) task >>…
Davy Kavanagh
  • 4,809
  • 9
  • 35
  • 50
1
vote
1 answer

Is pdfkit compatible with grunt-browserify?

Does pdfkit work with grunt-browserify? I'm attempting to wire pdfkit in with an angular single page app but am getting the following errors during my build process: Running "browserify:dist" (browserify) task TypeError: Arguments to path.resolve…
whatsTheDiff
  • 658
  • 2
  • 7
  • 19
1
vote
1 answer

Using Grunt-babelify-browserify without importing node modules

I'm writing automated tests with webdriver.io. I'm using grunt/babelify/browserify so that I can write the tests in ES6. I have required some node modules in my script. I want to be able to NOT compile those node files into my distribution script,…
mags
  • 590
  • 1
  • 8
  • 25
1
vote
1 answer

Browserify jQuery UI from CDN

I'd like to use Browserify but continue loading jQuery and jQuery UI from Google's CDN instead of concatenating the code into my files or my vendor bundle. I can't seem to figure out how to get it to work. I am getting this error when loading…
1
vote
1 answer

Grunt + Browserify + React cannot find called modules

I'm trying to set up a development server on Ubuntu 14 and am using Grunt + Browserify. I'm able to make the code run and if I use Grunt to watch for sass changes those work. However, any time I make a change to a react file that calls on another…
user3756657
1
vote
1 answer

Warning: Task "browserfy" not found

I want to use browserfy to transform es6 files to es5. But everytime the watch-task is executed I get the error: Warning: Task "browserfy" not found. Use --force to continue. I automate the task with the following gruntfile…
FunkyPeanut
  • 1,152
  • 2
  • 9
  • 28
1
vote
1 answer

Browserify failing with cannot find module "lodash" error for some files

I am running browserify for an app.js located at some path and it fails everytime with cannot find module lodash from [PATH]. Running "browserify:build" (browserify) task Error: Cannot find module 'lodash' from…
jazz199
  • 911
  • 1
  • 8
  • 12
1
vote
3 answers

How to create standalone bundle of React & React with Addons using Grunt + Browserify?

I am trying to configure Grunt & Browserify to output a standalone bundle containing, among other things, React as CommonJS module so that it can be referenced by other bundles. The problem that I am having now is that the aliasing does not seem to…
fraxture
  • 5,113
  • 4
  • 43
  • 83
1
vote
1 answer

Proxyquire can't find module

I'm trying to use proxyquire to mock dependency for testing. But I keep getting this error Cannot find module I tried with full path and it's still complaining. I have a src file which is in assets/js/src/lib and the test in js-tests/specs Here's…
toy
  • 11,711
  • 24
  • 93
  • 176
1
vote
1 answer

Grunt-Browserify Ignore Option

I have a React app that I am transforming, uglifying and browserfying via Grunt. My grunt file looks like this... module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), browserify: { dist: { …
bencrinkle
  • 278
  • 4
  • 13