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 authored and Michael Cebrian committed Aug 23, 2016
1 parent 5ac060b commit 9d97855
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions addon/ng2/tasks/serve-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ module.exports = Task.extend({
historyApiFallback: true,
stats: webpackDevServerOutputOptions,
inline: true,
proxy: proxyConfig
proxy: proxyConfig,
watchOptions: CliConfig.fromProject().defaults.watchOptions
};

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 +71,3 @@ module.exports = Task.extend({
})
}
});




0 comments on commit 9d97855

Please sign in to comment.