diff --git a/addon/ng2/tasks/serve-webpack.ts b/addon/ng2/tasks/serve-webpack.ts index 4dfb1dffff1f..a227220fcc97 100644 --- a/addon/ng2/tasks/serve-webpack.ts +++ b/addon/ng2/tasks/serve-webpack.ts @@ -54,7 +54,10 @@ export default Task.extend({ historyApiFallback: true, stats: webpackDevServerOutputOptions, inline: true, - proxy: proxyConfig + proxy: proxyConfig, + watchOptions: { + poll: CliConfig.fromProject().config.defaults.poll + } }; ui.writeLine(chalk.green(oneLine` diff --git a/lib/config/schema.d.ts b/lib/config/schema.d.ts index f660f183f221..bb47f47212a8 100644 --- a/lib/config/schema.d.ts +++ b/lib/config/schema.d.ts @@ -59,5 +59,6 @@ export interface CliConfig { defaults?: { styleExt?: string; prefixInterfaces?: boolean; + poll?: number; }; } diff --git a/lib/config/schema.json b/lib/config/schema.json index af5d76267e71..5077846501e6 100644 --- a/lib/config/schema.json +++ b/lib/config/schema.json @@ -135,10 +135,13 @@ }, "prefixInterfaces": { "type": "boolean" + }, + "poll": { + "type": "number" } }, "additionalProperties": false } }, "additionalProperties": false -} \ No newline at end of file +}