From a56aef781238ea2848d0bcf401c8d07bc324a70a Mon Sep 17 00:00:00 2001 From: Taszid Chowdhury Date: Mon, 24 Mar 2025 17:52:17 -0400 Subject: [PATCH] added plug in --- _plugins/watcher-patch.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 _plugins/watcher-patch.rb diff --git a/_plugins/watcher-patch.rb b/_plugins/watcher-patch.rb new file mode 100644 index 0000000..7f65498 --- /dev/null +++ b/_plugins/watcher-patch.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +require 'jekyll-watch' + +module Jekyll + module Watcher + extend self + + alias_method :original_listen_ignore_paths, :listen_ignore_paths + + def listen_ignore_paths(options) + original_listen_ignore_paths(options) + [%r!.*\.TMP!i] + end + end +end \ No newline at end of file