From fe45384ca3d3ed2719463238daa1dcb54f6d8067 Mon Sep 17 00:00:00 2001 From: Frank Schmid Date: Mon, 18 Sep 2017 16:18:19 +0200 Subject: [PATCH] Use --webpack-use-polling to switch to fs polling mode on watch (#225) * Use --webpack-use-polling to switch to fs pooling mode on watch * Added unit tests --- README.md | 9 +++++++++ lib/run.js | 9 ++++++++- lib/wpwatch.js | 10 +++++++++- tests/run.test.js | 20 ++++++++++++++++++++ 4 files changed, 46 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 454d87314..8e4bd728f 100644 --- a/README.md +++ b/README.md @@ -270,6 +270,10 @@ $ serverless invoke local --function --path event.json --watch Everytime the sources are changed, the function will be executed again with the changed sources. The command will watch until the process is terminated. +If you have your sources located on a file system that does not offer events, +you can enable polling with the `--webpack-use-polling=