diff --git a/packages/angular-cli/plugins/karma.js b/packages/angular-cli/plugins/karma.js index 1c17e28e3771..69bf559031be 100644 --- a/packages/angular-cli/plugins/karma.js +++ b/packages/angular-cli/plugins/karma.js @@ -1,5 +1,6 @@ const path = require('path'); const getWebpackTestConfig = require('../models/webpack-build-test').getWebpackTestConfig; +const CliConfig = require('../models/config').CliConfig; const init = (config) => { @@ -23,8 +24,12 @@ const init = (config) => { timings: false, chunks: false, chunkModules: false + }, + watchOptions: { + poll: CliConfig.fromProject().config.defaults.poll } }; + config.webpack = Object.assign(webpackConfig, config.webpack); config.webpackMiddleware = Object.assign(webpackMiddlewareConfig, config.webpackMiddleware); @@ -45,4 +50,4 @@ preprocessor.$inject = [] module.exports = Object.assign({ 'framework:angular-cli': ['factory', init], 'preprocessor:angular-cli': ['factory', preprocessor] -}, require('karma-webpack'), require('karma-sourcemap-loader')); \ No newline at end of file +}, require('karma-webpack'), require('karma-sourcemap-loader'));