Skip to content

theakman2/node-modules-webant-handler-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-modules-webant-handler-json

Require JSON files with webant

Installation

$ npm install webant-handler-json

Usage

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

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

You may now require JSON files:

var data = require("./path/to/data.json");

Tests Build Status

Ensure phantomjs is installed and in your PATH, then run:

$ npm test

About

Node module enabling JSON requires for webant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published