I don’t know if you can call it “less complicated”, but if you bundle with webpack, it is trivial to require('people.json')
. There may be a way to do something similar with browserify; I don’t know.
I don’t know if you can call it “less complicated”, but if you bundle with webpack, it is trivial to require('people.json')
. There may be a way to do something similar with browserify; I don’t know.