From 3e85487fcad7f43ba0abd7fbb0a3b0bad619091b Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 21 Apr 2021 21:10:55 -0400 Subject: More tailwind setup stuff --- app/javascript/packs/application.js | 2 ++ app/javascript/stylesheets/application.css | 6 ++++++ app/views/layouts/application.html.erb | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/javascript/stylesheets/application.css diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index f710851..856724b 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -11,3 +11,5 @@ import "channels" Rails.start() Turbolinks.start() ActiveStorage.start() + +require("stylesheets/application.css") diff --git a/app/javascript/stylesheets/application.css b/app/javascript/stylesheets/application.css new file mode 100644 index 0000000..229e18d --- /dev/null +++ b/app/javascript/stylesheets/application.css @@ -0,0 +1,6 @@ +@import "tailwindcss/base"; +@import "tailwindcss/components"; + +/* Other imports go here. */ + +@import "tailwindcss/utilities"; diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b69d3d4..e7f5226 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -6,7 +6,7 @@ <%= csrf_meta_tags %> <%= csp_meta_tag %> - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> -- cgit v1.2.3