Skip to content

Commit 41252cf

Browse files
authored
Create patch.rb
1 parent 3fa17f0 commit 41252cf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_plugins/patch.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
require 'jekyll-watch'
4+
5+
module Jekyll
6+
module Watcher
7+
extend self
8+
9+
alias_method :original_listen_ignore_paths, :listen_ignore_paths
10+
11+
def listen_ignore_paths(options)
12+
original_listen_ignore_paths(options) + [%r!.*\.TMP!i]
13+
end
14+
end
15+
end

0 commit comments

Comments
 (0)