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 23, 2016
1 parent 5ac060b commit b00fc48
Showing 1 changed file with 4 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().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({
})
}
});




0 comments on commit b00fc48

Please sign in to comment.