0
我正在使用angular-cli,我想使用两个karma.conf.js文件进行测试。angular-cli - 使用多个karma.conf.js
对于CI:对于那些我使用的无头镀铬
customLaunchers:{
ChromeHeadless: { base: 'Chrome', flags: [ '--headless', '--disable-gpu', // Without a remote debugging port, Google Chrome exits immediately. '--remote-debugging-port=9222', ], } }
对于开发:为此我使用Chrome。
有什么办法可以根据参数值在两个karma.conf.js之间切换。
构建不会捆绑“备选配置文件”,并且CI过程失败。任何方式在包中包含其他文件? – lohiarahul