Skip to content

Commit

Permalink
Merge branch 'sprockets_js_assetpipeline'
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Feb 22, 2020
2 parents 19e9a32 + c0329c7 commit c1f3825
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ gem 'sqlite3', '~> 1.4'
gem 'puma', '~> 4.1'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 4.0'

# Use traditional (non-webpack) sprockets asset-pipeline
gem 'sprockets', '~> 4'
gem 'sprockets-rails', :require => 'sprockets/railtie'

# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
Expand Down
1 change: 1 addition & 0 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
//= link_tree ../images
//= link_directory ../stylesheets .css
//= link_directory ../javascripts .js
4 changes: 4 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//= require rails-ujs
//= require turbolinks
//= require_tree .

2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
= csrf_meta_tags
= csp_meta_tag
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
%body
.navbar-placeholder
= render "navbar"
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/devise.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
= csrf_meta_tags
= csp_meta_tag
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
%body
.content
.hero
Expand Down

0 comments on commit c1f3825

Please sign in to comment.