Skip to content

theakman2/node-modules-webant-handler-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node module to handle javascript requires for webant.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published