diff --git a/Gemfile b/Gemfile index d5a2ea7..736c753 100644 --- a/Gemfile +++ b/Gemfile @@ -27,6 +27,5 @@ group :development do gem "rubocop-performance", require: false gem "rubocop-rails", ">= 2.22.0", require: false gem "web-console" + gem "foreman", "~> 0.88.1" end - -gem "foreman", "~> 0.88.1" diff --git a/bin/setup b/bin/setup index 70ca357..28e17e8 100755 --- a/bin/setup +++ b/bin/setup @@ -106,4 +106,4 @@ end Dir.chdir(File.expand_path("..", __dir__)) do setup! -end +end \ No newline at end of file diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..e0c9883 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,22 @@ +import { defineConfig } from "vite"; +import { resolve } from "path"; +import ViteRails from "vite-plugin-rails"; + +export default defineConfig({ + plugins: [ + ViteRails({ + envVars: { RAILS_ENV: "development" }, + envOptions: { defineOn: "import.meta.env" }, + fullReload: { + additionalPaths: ["config/routes.rb", "app/views/**/*"], + delay: 300, + }, + }), + ], + build: { sourcemap: false }, + resolve: { + alias: { + "@assets": resolve(__dirname, "app/frontend"), + }, + }, +}); diff --git a/vite.config.ts b/vite.config.ts deleted file mode 100644 index a711864..0000000 --- a/vite.config.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { defineConfig } from 'vite' -import ViteRails from "vite-plugin-rails" - -export default defineConfig({ - plugins: [ - ViteRails({ - envVars: { RAILS_ENV: "development" }, - envOptions: { defineOn: "import.meta.env" }, - fullReload: { - additionalPaths: [], - }, - }), - ], -})