Browserify task
Browserify task
Description
Task to process browserify, that lets you require(‘modules’) in the browser (see: browserify.org ).
Installation
$ npm install -g browserify
Browserify task parameters
Attribute | Description | Value | Required |
---|---|---|---|
file | input file | yes | |
tofile | output file | yes |
Examples
<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>