From: Jukka Kurkela Date: Wed, 3 Jun 2020 22:04:49 +0000 (+0300) Subject: Use verbose build in dev mode (#7455) X-Git-Tag: v3.0.0-beta.2~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=614fa07c997ef606a984449ca0756a9197eeaa41;p=thirdparty%2FChart.js.git Use verbose build in dev mode (#7455) * Use verbose build in dev mode * Update comment --- diff --git a/karma.conf.js b/karma.conf.js index d0a620da5..7c76e82fb 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -17,11 +17,11 @@ module.exports = function(karma) { const grep = args.grep === true ? '' : args.grep; const specPattern = 'test/specs/**/*' + grep + '*.js'; - // Use the same rollup config as our dist files: when debugging (--watch), + // Use the same rollup config as our dist files: when debugging (npm run dev), // we will prefer the unminified build which is easier to browse and works // better with source mapping. In other cases, pick the minified build to // make sure that the minification process (terser) doesn't break anything. - const regex = args.watch ? /chart\.js$/ : /chart\.min\.js$/; + const regex = karma.autoWatch ? /chart\.js$/ : /chart\.min\.js$/; const build = builds.filter(v => v.output.file.match(regex))[0]; karma.set({