Skip to content

Conversation

@cflipse
Copy link
Collaborator

@cflipse cflipse commented Sep 13, 2025

What is the goal of this PR and why is this important?

Add and configure vite-rails.

Vite is modern asset builder / bundler that we will use for
javascript and CSS assets going forward.

This also enables a second rails docker container that acts
as an asset host, supporting live reloading within the rails
application structure.

As it currently stands, the now-legacy sprockets / asset pipeline
configurations are loading at the same time within the main application
layout. We may want to consider having two separate layout pages and
using that in building out new functionality, and opting-in legacy pages
when they've migrated away from using the features of the old asset pipleine

  • remove coffee-rail
  • add vite and run vite install
  • dev dockerfile adds dev
  • Production dockerfile also copy
  • Add the missing .dockerignore
  • generate bundler binstub to make vite binstub happy
  • update to use vite-rails plugin
  • run a vite dev server inside docker
  • This work is part of [link an issue]

How did you approach the change?

Anything else to add?

@cflipse cflipse force-pushed the vite branch 2 times, most recently from 8e2c627 to 6ce04ff Compare September 13, 2025 20:53
Copy link
Collaborator

@maebeale maebeale left a comment

Choose a reason for hiding this comment

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

wooooo hooooo! thanks, @cflipse !!! 💥

@cflipse cflipse merged commit 040dc1e into main Sep 15, 2025
2 checks passed
@cflipse cflipse deleted the vite branch September 15, 2025 01:19
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.

4 participants