diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-26 19:24:25 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-26 19:24:25 +0800 |
commit | 4465313df3689ccf356b516693a77925ea2f57ea (patch) | |
tree | 86a0a63dba249162a949a8cb82e91b6c14a68242 /webpack.config.js | |
parent | e1e50bba3d08a96d4cb5a9314c255e5d5c19d51a (diff) | |
download | dexon-sol-tools-4465313df3689ccf356b516693a77925ea2f57ea.tar.gz dexon-sol-tools-4465313df3689ccf356b516693a77925ea2f57ea.tar.zst dexon-sol-tools-4465313df3689ccf356b516693a77925ea2f57ea.zip |
Include JSON file loader in webpack
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 26 |
1 files changed, 18 insertions, 8 deletions
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', + }, + ], }, }; |