liferay-npm-bundler-loader-json-loader

2.32.0 • Public • Published

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.

/liferay-npm-bundler-loader-json-loader/

    Package Sidebar

    Install

    npm i liferay-npm-bundler-loader-json-loader

    Weekly Downloads

    1,250

    Version

    2.32.0

    License

    none

    Unpacked Size

    5.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • antonio-ortega
    • daniel.sanz
    • izaera-lr
    • edalgrin
    • pat270
    • liferay
    • bryceosterhaus
    • matuzalemteles
    • gagranta
    • p2kmgcl
    • marko.cikos
    • kresimircoko
    • wincent
    • izaera