aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package.json3
-rw-r--r--webpack.config.js26
2 files changed, 20 insertions, 9 deletions
diff --git a/package.json b/package.json
index 36a79eba0..a55f7bfa2 100644
--- a/package.json
+++ b/package.json
@@ -34,14 +34,15 @@
"devDependencies": {
"@types/bignumber.js": "^4.0.2",
"@types/chai": "^3.5.2",
+ "@types/lodash": "^4.14.64",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.22",
- "@types/lodash": "^4.14.64",
"awesome-typescript-loader": "^3.1.3",
"bignumber.js": "^4.0.2",
"chai": "^3.5.0",
"chai-bignumber": "^2.0.0",
"copyfiles": "^1.2.0",
+ "json-loader": "^0.5.4",
"mocha": "^3.4.1",
"npm-run-all": "^4.0.2",
"nyc": "^10.3.2",
diff --git a/webpack.config.js b/webpack.config.js
index 04822d79d..67af51f7a 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -17,7 +17,7 @@ module.exports = {
umdNamedDefine: true,
},
resolve: {
- extensions: ['.ts', '.js'],
+ extensions: ['.ts', '.js', '.json'],
},
devtool: 'source-map',
plugins: [
@@ -28,13 +28,23 @@ module.exports = {
}),
],
module: {
- loaders: [{
- test: /\.ts$/,
- loader: 'awesome-typescript-loader',
- exclude: /node_modules/,
- query: {
- declaration: false,
+ rules: [
+ {
+ test: /\.ts$/,
+ use: [
+ {
+ loader: 'awesome-typescript-loader',
+ query: {
+ declaration: false,
+ },
+ },
+ ],
+ exclude: /node_modules/,
},
- }],
+ {
+ test: /\.json$/,
+ loader: 'json-loader',
+ },
+ ],
},
};