npm install --save json-loader
var json = require("json!./file.json");
// => returns file.json content as json parsed objectDon't forget to polyfill require if you want to use it in node.
See webpack documentation.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
npm install --save json-loader
var json = require("json!./file.json");
// => returns file.json content as json parsed objectDon't forget to polyfill require if you want to use it in node.
See webpack documentation.