diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2017-11-08 01:26:48 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2017-11-08 01:26:48 +0300 |
commit | c2555e7298cb1549214afc319e8eda6e7248215d (patch) | |
tree | 04fccfa714a0f338c8f39340f541df17b8328957 /config/webpack.config.js | |
parent | d9313795e744c83d1b2c7235b34438a87554562d (diff) |
Adds typescript support in webpack. With Mike G.
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index f7a7182a627..67d7cae3ccf 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -108,6 +108,10 @@ var config = { loader: 'vue-loader', }, { + test: /\.ts$/, + loader: 'ts-loader', + }, + { test: /\.svg$/, loader: 'raw-loader', }, @@ -252,7 +256,7 @@ var config = { ], resolve: { - extensions: ['.js'], + extensions: ['.js', '.ts'], alias: { '~': path.join(ROOT_PATH, 'app/assets/javascripts'), 'emojis': path.join(ROOT_PATH, 'fixtures/emojis'), |