Skip to content

Commit

Permalink
Use defined version constant to download & install the library
Browse files Browse the repository at this point in the history
  • Loading branch information
megatux committed Nov 27, 2023
1 parent 5a87452 commit 29f0e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/htmx/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def setup_bun
end

def setup_importmap
run 'bin/importmap pin htmx.org'
run "bin/importmap pin htmx.org#{Htmx::Rails::HTMX_VERSION}"

add_to_manifest(manifest('app/javascript'), IMPORTMAP_SETUP)
end
Expand All @@ -71,7 +71,7 @@ def setup_sprockets
end

def setup_webpacker
run 'yarn add htmx.org'
run "yarn add htmx.org#{Htmx::Rails::HTMX_VERSION}"

add_to_manifest(manifest(webpack_source_path), WEBPACKER_SETUP)
end
Expand Down

0 comments on commit 29f0e07

Please sign in to comment.