]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use verbose build in dev mode (#7455)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Wed, 3 Jun 2020 22:04:49 +0000 (01:04 +0300)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 22:04:49 +0000 (18:04 -0400)
* Use verbose build in dev mode
* Update comment

karma.conf.js

index d0a620da5cd6a0495f3c9f15fede74dc3a50408c..7c76e82fb6d68ef30913d8122194b0679d06c964 100644 (file)
@@ -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({