Browserify

Description

Task to process browserify, that lets you require('modules') in the browser (see: browserify.org).

Installation

Please install:
$ npm install -g browserify

Browserify task parameters

Attribute Description Value Required
file input file yes
tofile output file yes

Examples

/!\ browserify must be installed on the system and set up in the PATH.

<project name="browserify task"> 

  <taskdef name="browserify" 
     classname="net.sourceforge.ant4x.taskdefs.javascript.BrowserifyTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="browserify"> 
    <browserify file="tmp.js" tofile="dist.js" />
  </target> 

                    </project>