make sure karma runs tests in dev mode to speed up build

pull/7387/head
Matthew Hodgson 2018-09-26 01:39:05 +01:00
parent b7843a5d46
commit 9e916cdd5c
1 changed files with 3 additions and 0 deletions

View File

@ -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",