From 7ce3601c5dc89c4a54221ab5e2bc976cbbb960dd Mon Sep 17 00:00:00 2001 From: John Paul Ashenfelter Date: Mon, 27 Oct 2025 06:01:40 -0400 Subject: [PATCH] Run bin/vite install --- .gitignore | 8 ++++++++ app/views/layouts/application.html.erb | 12 ++++++++++++ config/initializers/content_security_policy.rb | 9 +++++++++ package-lock.json | 8 ++++---- package.json | 2 +- vite.config.mts | 11 ++--------- 6 files changed, 36 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 2609e75c8..3426ad422 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,11 @@ node_modules .vite # Ignore local Active Storage storage + +# Vite Ruby +/public/vite* +node_modules +# Vite uses dotenv and suggests to ignore local-only env files. See +# https://vitejs.dev/guide/env-and-mode.html#env-files +*.local + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 9f20df076..024208f28 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -25,6 +25,18 @@ Visit the guide for more information: https://vite-ruby.netlify.app/guide/rails --> + <%= vite_client_tag %> + <%= vite_javascript_tag 'application' %> + +