1.0.2 • Published 8 years ago

jsonnet-loader v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

jsonnet-loader for webpack

Build Status

The loader is able to require jsonnet file for webpack.

Installation

npm install --save-dev jsonnet-loader

Usage

Load a config.jsonnet to json format.

var json = require("jsonnet!./config.jsonnet");

webpack config

module.exports = {
  module: {
    loaders: [
      {
        test: /\.jsonnet$/,
        loader: "jsonnet"
      }
    ]
  }
};

Then you only need to write: require("./config.jsonnet").

Test

npm run test