README
json loader for webpack
Usage
var json = require("json!./file.json");
// => returns file.json content as json parsed object
Don't forget to polyfill require
if you want to use it in node.
See webpack
documentation.
compact json loader module for webpack
<script type="module">
import compactJsonLoader from 'https://cdn.skypack.dev/compact-json-loader';
</script>
var json = require("json!./file.json");
// => returns file.json content as json parsed object
Don't forget to polyfill require
if you want to use it in node.
See webpack
documentation.