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 …
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…
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": {
…
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…
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: {
…
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
>>…
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…
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,…
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…
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…
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…
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…
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…
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…
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: {
…