Skip to content

Commit

Permalink
Adapt to changes in shakapacker:install
Browse files Browse the repository at this point in the history
  • Loading branch information
eoinkelly authored and G-Rath committed Oct 6, 2023
1 parent 33b77b4 commit 202c9f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<title>
<%%= strip_tags(yield(:title)) + " " if content_for?(:title) %>
<%%= strip_tags(yield(:title)) + " - " if content_for?(:title) %>
<%= app_const_base.titleize %>
</title>

Expand All @@ -15,7 +15,7 @@
<%%= stylesheet_link_tag("application", media: "all", "data-turbolinks-track": "reload") %>

<%%# JavaScript must be in head for Turbolinks to work. %>
<%%= javascript_pack_tag "application", "data-turbolinks-track": "reload", defer: true %>
<%%= javascript_pack_tag "application", "data-turbolinks-track": "reload", defer: true, nonce: true %>

<%%= yield(:head) %>

Expand Down
3 changes: 0 additions & 3 deletions variants/frontend-base/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
# Configure app/frontend

run "mv app/javascript app/frontend"
run "mkdir app/frontend/packs"
run "mv app/frontend/application.js app/frontend/packs/application.js"

copy_file "config/webpack/webpack.config.js", force: true

gsub_file "config/shakapacker.yml", "source_entry_path: /", "source_entry_path: packs", force: true
Expand Down

0 comments on commit 202c9f4

Please sign in to comment.