Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 933 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 933 Bytes

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