0.5.7 • Published 7 years ago
json-loader v0.5.7
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
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'
}
]
}
}
0.5.7
7 years ago
0.5.6
7 years ago
0.5.5
7 years ago
0.5.4
8 years ago
0.5.3
9 years ago
0.5.2
9 years ago
0.5.1
10 years ago
0.5.0
11 years ago
0.2.0
12 years ago
0.1.8
12 years ago
0.1.7
12 years ago
0.1.6
12 years ago
0.1.5
12 years ago
0.1.4
12 years ago
0.1.3
12 years ago
0.1.2
12 years ago
0.1.1
12 years ago
0.1.0
12 years ago