Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from sprockets to propshaft #659

Merged
merged 6 commits into from
Feb 14, 2025

Conversation

nicolastemciuc
Copy link
Member

Summary

This PR migrates from sprockets-rails to propshaft following the official migration guide

Copy link
Collaborator

@EmilioCristalli EmilioCristalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hay que borrar config/initializers/assets.rb ?

@@ -10,7 +10,8 @@
<link rel="icon" type="image/png" href="/icon-128.png" sizes="128x128">

<meta name="viewport" content="width=device-width, initial-scale=1">
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esto incluye todos los css que estan en app/assets/stylesheets/ ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si, cree una app Rails 8 nueva y tenia este comentario

    <%# Includes all stylesheet files in app/assets/stylesheets %>
    <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>

Aca en el generator de Rails

@nicolastemciuc
Copy link
Member Author

nicolastemciuc commented Feb 14, 2025

@EmilioCristalli

hay que borrar config/initializers/assets.rb ?

En una app Rails 8 con propshaft tiene este archivo

Tal vez se podria quitar

Rails.application.config.assets.paths << Rails.root.join('app/assets/fonts')

@nicolastemciuc nicolastemciuc merged commit 74dc284 into master Feb 14, 2025
5 checks passed
@nicolastemciuc nicolastemciuc deleted the nt--migrate-from-sprockets-to-propshaft branch February 14, 2025 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants