liferay-npm-bundler-loader-json-loader
v2.32.0
Published
A liferay-npm-bundler loader that turns JSON files into JavaScript modules that export the parsed JSON object.
Downloads
5,009
Maintainers
Keywords
Readme
liferay-npm-bundler-loader-json-loader
A liferay-npm-bundler loader that turns JSON files into JavaScript modules that export the parsed JSON object.
Installation
npm install --save-dev liferay-npm-bundler-loader-json-loader
Usage
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.