Skip to content

Commit

Permalink
Add LiveReload extension (#66)
Browse files Browse the repository at this point in the history
This extension automatically refreshes the browser as you make
changes to pages when doing local development.
  • Loading branch information
selectiveduplicate authored Sep 19, 2024
1 parent 05f6602 commit 07e9a30
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gem 'middleman', '~> 4.4'
gem 'middleman-syntax', '~> 3.2'
gem 'middleman-autoprefixer', '~> 3.0'
gem 'middleman-sprockets', '~> 4.1'
gem 'middleman-livereload', "~> 3.4.3"
gem 'rouge', '~> 3.21'
gem 'redcarpet', '~> 3.6.0'
gem 'nokogiri', '~> 1.13.3'
Expand Down
12 changes: 12 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ GEM
concurrent-ruby (1.2.0)
contracts (0.16.1)
dotenv (2.8.1)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
erubis (2.7.0)
eventmachine (1.2.7)
execjs (2.7.0)
fast_blank (1.0.1)
fastimage (2.2.6)
Expand All @@ -30,6 +34,7 @@ GEM
hamster (3.0.0)
concurrent-ruby (~> 1.0)
hashie (3.6.0)
http_parser.rb (0.8.0)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
kramdown (2.4.0)
Expand Down Expand Up @@ -74,6 +79,10 @@ GEM
toml
uglifier (~> 3.0)
webrick
middleman-livereload (3.4.7)
em-websocket (~> 0.5.1)
middleman-core (>= 3.3)
rack-livereload (~> 0.3.15)
middleman-sprockets (4.1.1)
middleman-core (~> 4.0)
sprockets (>= 3.0)
Expand All @@ -95,6 +104,8 @@ GEM
public_suffix (5.0.1)
racc (1.6.0)
rack (2.2.6.2)
rack-livereload (0.3.17)
rack
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
Expand Down Expand Up @@ -130,6 +141,7 @@ PLATFORMS
DEPENDENCIES
middleman (~> 4.4)
middleman-autoprefixer (~> 3.0)
middleman-livereload (~> 3.4.3)
middleman-sprockets (~> 4.1)
middleman-syntax (~> 3.2)
nokogiri (~> 1.13.3)
Expand Down
3 changes: 3 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
config.inline = true
end

# Activate LiveReload
activate :livereload

# Github pages require relative links
#activate :relative_assets
#set :relative_links, true
Expand Down

0 comments on commit 07e9a30

Please sign in to comment.