A liferay-npm-bundler loader that turns JSON files into JavaScript modules that export the parsed JSON object.
npm install --save-dev liferay-npm-bundler-loader-json-loader
In order to use this loader you must declare a rule in your module's .npmbundlerrc
file:
{
"rules": [
{
"test": "\\.json$",
"use": ["json-loader"]
}
]
}
See the project's documentation for more information on how to use build rules.