mattbrictson / nextgen

Generate your next Rails app interactively! This template includes production-ready recommendations for testing, security, developer productivity, and modern frontends. Plus optional Vite support! ⚡️
MIT License
274 stars 7 forks source link

Remove sprockets JS tag when Vite is installed #108

Closed mattbrictson closed 1 month ago

mattbrictson commented 1 month ago

Before, generating a Vite-enabled app with nextgen would leave this in application.html.erb:

<%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>

Since a Vite app doesn't use sprockets, this tag is not needed.

This PR updates the "remove sprockets" step of the Vite installation to remove the tag.

Originally reported in #107.