jsonnet-loader
v1.0.2
Published
The loader is able to require jsonnet file for webpack.
Downloads
3
Readme
jsonnet-loader for webpack
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