Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit aa9fa2c

Browse files
committed
Merge pull request #56 from xicombd/feat/blocks
Add json loader
2 parents b042d74 + 1a28019 commit aa9fa2c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

karma.conf.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@ module.exports = function (config) {
1919

2020
webpack: {
2121
resolve: {
22-
extensions: ['', '.js']
22+
extensions: ['', '.js', '.json']
2323
},
2424
externals: {
2525
fs: '{}'
2626
},
2727
node: {
2828
Buffer: true
29+
},
30+
module: {
31+
loaders: [
32+
{ test: /\.json$/, loader: 'json' }
33+
]
2934
}
3035
},
3136

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"chai": "^3.4.1",
3939
"fs-blob-store": "^5.2.1",
4040
"istanbul": "^0.4.1",
41+
"json-loader": "^0.5.4",
4142
"karma": "^0.13.19",
4243
"karma-chrome-launcher": "^0.2.2",
4344
"karma-cli": "^0.1.2",

0 commit comments

Comments
 (0)