Skip to content

Commit

Permalink
feat(webpackDevServer): Add watchOptions for webpackDevServer
Browse files Browse the repository at this point in the history
Add watchOptions to webpackDevServerConfiguration to conditionally enable
polling option in watchpack
Remove additional blank lines from end of serve-watchpack.ts so that only
one is remaining
  • Loading branch information
JSMike committed Aug 24, 2016
1 parent f9df8bb commit b9ad5e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions addon/ng2/tasks/serve-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ module.exports = Task.extend({
historyApiFallback: true,
stats: webpackDevServerOutputOptions,
inline: true,
proxy: proxyConfig
proxy: proxyConfig,
watchOptions: {
poll: CliConfig.fromProject().config.defaults.poll
}
};

const serveMessage:string = chalk.green(`\n*\n*\n NG Live Development Server is running on http://${commandOptions.host}:${commandOptions.port}.\n*\n*`);
Expand All @@ -70,7 +73,3 @@ module.exports = Task.extend({
})
}
});




1 change: 1 addition & 0 deletions lib/config/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ export interface CliConfig {
styleExt?: string;
prefixInterfaces?: boolean;
lazyRoutePrefix?: string;
poll?: boolean | number;
};
}

0 comments on commit b9ad5e1

Please sign in to comment.