mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(gulp): allow --browsers flag to work on all karma tasks
This commit is contained in:
@@ -41,11 +41,11 @@ module.exports = function(gulp, argv) {
|
||||
/*
|
||||
* Karma
|
||||
*/
|
||||
argv.browsers && (karmaConf.browsers = argv.browsers.trim().split(','));
|
||||
argv.reporters && (karmaConf.reporters = argv.reporters.trim().split(','));
|
||||
|
||||
gulp.task('karma', function(done) {
|
||||
karmaConf.singleRun = true;
|
||||
argv.browsers && (karmaConf.browsers = argv.browsers.trim().split(','));
|
||||
argv.reporters && (karmaConf.reporters = argv.reporters.trim().split(','));
|
||||
|
||||
karma.start(karmaConf, done);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user