Skip to content

json loader module for webpack - UNMAINTAINED

License

Notifications You must be signed in to change notification settings

lh0x00/sec-json-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm node deps tests coverage chat

Sec JSON Loader

Install

npm install --save-dev sec-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('sec-json-loader!./file.json');

Configuration (recommended)

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

webpack.config.js

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

Maintainer


Tobias Koppers

About

json loader module for webpack - UNMAINTAINED

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%