mirror of
https://github.com/cotes2020/chirpy-starter.git
synced 2025-04-12 07:33:27 +10:00
added plug in
This commit is contained in:
parent
d497dcaba7
commit
a56aef7812
15
_plugins/watcher-patch.rb
Normal file
15
_plugins/watcher-patch.rb
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user