json-loader

WebJar for json-loader

License

License

MIT
Categories

Categories

JSON Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

json-loader
Last Version

Last Version

0.5.7
Release Date

Release Date

Type

Type

jar
Description

Description

json-loader
WebJar for json-loader
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/webpack-contrib/json-loader

Download json-loader

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/json-loader/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>json-loader</artifactId>
    <version>0.5.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/json-loader/
implementation 'org.webjars.npm:json-loader:0.5.7'
// https://jarcasting.com/artifacts/org.webjars.npm/json-loader/
implementation ("org.webjars.npm:json-loader:0.5.7")
'org.webjars.npm:json-loader:jar:0.5.7'
<dependency org="org.webjars.npm" name="json-loader" rev="0.5.7">
  <artifact name="json-loader" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='json-loader', version='0.5.7')
)
libraryDependencies += "org.webjars.npm" % "json-loader" % "0.5.7"
[org.webjars.npm/json-loader "0.5.7"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

npm node deps tests coverage chat

JSON Loader

Install

npm install --save-dev json-loader

⚠️ Since webpack >= v2.0.0, importing of JSON files will work by default. You might still want to use this if you use a custom file extension. See the v1.0.0 -> v2.0.0 Migration Guide for more information

Usage

Inline

const json = require('json-loader!./file.json');

Configuration (recommended)

const json = require('./file.json');

webpack.config.js

module.exports = {
  module: {
    loaders: [
      {
        test: /\.json$/,
        loader: 'json-loader'
      }
    ]
  }
}

Maintainer


Tobias Koppers
org.webjars.npm

webpack-contrib

Community supported 3rd party packages for webpack

Versions

Version
0.5.7
0.5.4