json-loader

WebJar for json-loader

Лицензия

Лицензия

MIT
Категории

Категории

JSON Данные
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

json-loader
Последняя версия

Последняя версия

0.5.7
Дата

Дата

Тип

Тип

jar
Описание

Описание

json-loader
WebJar for json-loader
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать json-loader

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.5.7
0.5.4