From 9e916cdd5c50415c5c9984e32b1195078091f956 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 26 Sep 2018 01:39:05 +0100 Subject: [PATCH] make sure karma runs tests in dev mode to speed up build --- karma.conf.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/karma.conf.js b/karma.conf.js index 5309c050..d982aa24 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -32,6 +32,9 @@ const olm_entry = webpack_config.entry['olm']; // 'preprocessors' config below) delete webpack_config['entry']; +// make sure we're flagged as development to avoid wasting time optimising +webpack_config.mode = 'development'; + // add ./test as a search path for js webpack_config.module.rules.unshift({ test: /\.js$/, use: "babel-loader",