diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-13 20:46:08 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-13 20:46:08 +0300 |
commit | 01b66029944e94b310cfb5f714702d3d5a97034e (patch) | |
tree | 1208b6bd7b7dfae18d819329d5fc920c450573dc /karma.conf.js | |
parent | 2e102ec90cf64f2326020cad51a90c6f464b8d3d (diff) |
Add proper sourcemap support, esp. for unit test failures
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'karma.conf.js')
-rw-r--r-- | karma.conf.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/karma.conf.js b/karma.conf.js index eb9b5e854..245905c87 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -33,10 +33,10 @@ module.exports = function (config) { // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { - 'js/**[!vendor]/*[!spec].js': ['coverage'], + 'js/**[!vendor]/*[!spec].js': ['coverage', 'sourcemap'], // add webpack as preprocessor - 'js/tests/*_spec.js': ['webpack'], - 'js/tests/**/*_spec.js': ['webpack'] + 'js/tests/*_spec.js': ['webpack', 'sourcemap'], + 'js/tests/**/*_spec.js': ['webpack', 'sourcemap'] }, webpackMiddleware: { |