compact-json-loader

compact json loader module for webpack

Usage no npm install needed!

<script type="module">
  import compactJsonLoader from 'https://cdn.skypack.dev/compact-json-loader';
</script>

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.

License

MIT (http://www.opensource.org/licenses/mit-license.php)