1.0.2 • Published 9 years ago
jsonnet-loader v1.0.2
jsonnet-loader for webpack
The loader is able to require jsonnet file for webpack.
Installation
npm install --save-dev jsonnet-loaderUsage
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