Skip to content

Commit

Permalink
remove FOUC effect
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jun 12, 2024
1 parent 7f82994 commit ed05047
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/javascript/entrypoints/application.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "../../assets/stylesheets/application.css";
3 changes: 0 additions & 3 deletions app/javascript/entrypoints/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import Turn from '@domchristie/turn'
// // Import all channels.
// const channels = import.meta.globEager('./**/*_channel.js')

// Example: Import a stylesheet in app/frontend/index.css
import '../../assets/stylesheets/application.css'

import '~/controllers'

// Page transitions
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= vite_client_tag %>
<%= vite_javascript_tag "application", media: "all", "data-turbo-track": "reload" %>
<%= vite_stylesheet_tag "application.js", media: "all", "data-turbo-track": "reload" unless ViteRuby.instance.dev_server_running? %>
<%= vite_stylesheet_tag "application.css", media: "all", "data-turbo-track": "reload" %>
<%= yield :head %>
</head>

Expand Down

0 comments on commit ed05047

Please sign in to comment.