Skip to content
Node module to handle javascript requires for webant.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package.json

README.md

node-modules-webant-handler-js

Require javascript files with webant

Installation

There should be no need to install this module since it's required by the webant module by default.

If for some reason you'd like to use the module outside of webant, install as follows:

$ npm install webant-handler-js

Usage

Ensure the js handler is present in your webant configuration file. For example:

{
    "entry":"src/js/main.js",
    "dest":"build/main.js",
    "handlers":{
        "js":{}
    }
}

You may now require javascript files:

var foo = require("../lib/foo.js");
foo.sayHello();

Tests Build Status

$ npm test
Something went wrong with that request. Please try again.