|
před 7 roky | |
---|---|---|
.. | ||
README.md | před 7 roky | |
index.js | před 7 roky | |
package.json | před 7 roky |
npm install json-loader
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.