1.0.0 • Published 10 years ago
hjson-loader v1.0.0
hjson loader for webpack
Installation
npm install hjson-loader
Usage
The loader returns a json after parsing hjson.
var json = require("hjson!./file.hjson");
// => returns file.json content as json parsed objectQuery options
- str - returns the content as raw string (to be used in other loaders)
require "!file?name=[name].json!hjson?str!./file.hjson"
// => emits file.jsonDon't forget to polyfill require if you want to use it in node.
See webpack documentation.