Skip to content

Commit

Permalink
Update Sprockets manifests so assets compile correctly in Rails 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanaery committed Feb 8, 2024
1 parent 3bbbff7 commit 0307c8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/assets/config/trln_argon_manifest.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
//= link_directory ../javascripts/trln_argon .js
//= link_directory ../stylesheets/trln_argon .css
//= link_tree ../images
//= link trln_argon/trln_argon.scss
//= link trln_argon/trln_argon.js
4 changes: 4 additions & 0 deletions lib/generators/trln_argon/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def load_helpers_in_host_application
end
end

def update_assets_manifest
prepend_to_file 'app/assets/config/manifest.js', "//= link trln_argon_manifest.js\n"
end

def install_stylesheet
copy_file 'trln_argon.scss', 'app/assets/stylesheets/trln_argon.scss'
copy_file 'trln_argon_variables.scss', 'app/assets/stylesheets/trln_argon_variables.scss'
Expand Down

0 comments on commit 0307c8f

Please sign in to comment.