项目原始demo,不改动
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.
 
 
 
 
xzx 2ec7739298 [Version] V.3.8 il y a 4 ans
..
.npmignore [Version] V.3.8 il y a 4 ans
CHANGELOG.md [Version] V.3.8 il y a 4 ans
LICENSE [Version] V.3.8 il y a 4 ans
README.md [Version] V.3.8 il y a 4 ans
index.js [Version] V.3.8 il y a 4 ans
package.json [Version] V.3.8 il y a 4 ans

README.md

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');
const json = require('./file.json');

webpack.config.js

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

Maintainer


Tobias Koppers