You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 20, 2018. It is now read-only.
To reflect that, it would be nice if the README.md could point out that the same syntax (require('sample.json')) can be used, using this loader by adding
Thank you for this!
Since node 5 it is possible to just require .json files (see discussion e.g. webpack/webpack#184 and https://github.com/nodejs/node-v0.x-archive/blob/master/lib/module.js#L485 )
To reflect that, it would be nice if the README.md could point out that the same syntax (
require('sample.json')
) can be used, using this loader by addingto your Webpack configuration file. It took me a while to figure that out while
require
-ing node 5 modules.The text was updated successfully, but these errors were encountered: