Questions tagged [grunt-browserify]

Grunt task for node-browserify.

Grunt task for node-browserify.:

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

49 questions
0
votes
0 answers

browserify error when using npm dependency that is es6 style

After running my grunt build task i'm getting the following error: >> Error: Parsing file /Users/xx/testProject/node_modules/vfc/js/file.js: 'import' and 'export' may appear only with 'sourceType: module' (12:0) I'm using Grunt and Browserify to…
0
votes
1 answer

React client rendering -- handleClick not working

Here's a simple react file that handles click: //src/react/components/list.js /** @jsx React.DOM */ var React = require('react/addons'); var List = React.createClass({ displayName: 'List', handleClick: function() { console.error('click'); …
odieatla
  • 1,049
  • 3
  • 15
  • 35
0
votes
2 answers

Parse error when running grunt-browserify on a React component

I'm just toying around with React and have a basic setup using grunt and grunt-browserify, but I'm getting a parse error. Anyone know a solution for this? Side note - the task runs fine when I don't use react/jsx. With a basic component: var…
Ben
  • 5,283
  • 9
  • 35
  • 44
0
votes
1 answer

A bit confused with factor-bundle and grunt-browserify

a bit of a noob question -- I'd like to create two bundles -- app_bundle.js, and landing_bundle.js. They will both share react, and a few other files, so I thought it would be a good idea to extract those out into a different, common bundle. I…
Stepan Parunashvili
  • 2,627
  • 5
  • 30
  • 51
1 2 3
4