Skip to content

Commit 9d97855

Browse files
JSMikeMichael Cebrian
authored andcommitted
feat(webpackDevServer): Add watchOptions for webpackDevServer
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
1 parent 5ac060b commit 9d97855

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

addon/ng2/tasks/serve-webpack.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ module.exports = Task.extend({
4545
historyApiFallback: true,
4646
stats: webpackDevServerOutputOptions,
4747
inline: true,
48-
proxy: proxyConfig
48+
proxy: proxyConfig,
49+
watchOptions: CliConfig.fromProject().defaults.watchOptions
4950
};
5051

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

0 commit comments

Comments
 (0)