From c2555e7298cb1549214afc319e8eda6e7248215d Mon Sep 17 00:00:00 2001 From: Jacob Schatz Date: Tue, 7 Nov 2017 17:26:48 -0500 Subject: Adds typescript support in webpack. With Mike G. --- config/webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config') 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 @@ -107,6 +107,10 @@ var config = { test: /\.vue$/, 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'), -- cgit v1.2.1