File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed
Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 44 "type": "module",
55 "dependencies": {
66 "@rails/ujs": "^7.1.0",
7- "modern-normalize": "^2 .0.0 "
7+ "modern-normalize": "^3 .0.1 "
88 },
99 "scripts": {
1010 "heroku-postbuild": "yarn build",
1414 "watch": "vite build --watch"
1515 },
1616 "devDependencies": {
17- "sass": "^1.69.5 ",
18- "vite": "^5.0.0 ",
17+ "sass": "^1.97.2 ",
18+ "vite": "^7.3.1 ",
1919 "vite-plugin-compression": "^0.5.1",
20- "vite-plugin-dev-manifest": "^1.2 .1"
20+ "vite-plugin-dev-manifest": "^1.4 .1"
2121 }
2222}
Original file line number Diff line number Diff line change 6565private def raise_missing_secret_key_in_production
6666 puts "Please set the SECRET_KEY_BASE environment variable. You can generate a secret key with 'lucky gen.secret_key'".colorize.red
6767 exit(1)
68- end
68+ end
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ print_done
1010notice "Installing node dependencies"
1111run_command "yarn", "install", "--no-progress"
1212
13+ notice "Building initial asset manifest"
14+ run_command "yarn", "build"
15+
1316print_done
1417<% - end - %>
1518
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ require "./shards"
55# In development, vite-plugin-dev-manifest creates public/manifest.dev.json
66# In production, Vite creates public/.vite/manifest.json
77# The manifest path is determined by which file exists at compile time
8- {% if File.exists ?("public/manifest.dev.json") %}
8+ {% if file_exists ?("public/manifest.dev.json") %}
99 Lucky::AssetHelpers.load_manifest "public/manifest.dev.json", use_vite: true
10- {% elsif File.exists ?("public/.vite/manifest.json") %}
10+ {% elsif file_exists ?("public/.vite/manifest.json") %}
1111 Lucky::AssetHelpers.load_manifest "public/.vite/manifest.json", use_vite: true
1212{% else %}
1313 # For initial compilation, we'll assume development mode
@@ -38,4 +38,4 @@ require "./components/**"
3838require "./pages/**"
3939<% - end - %>
4040require "../db/migrations/**"
41- require "./app_server"
41+ require "./app_server"
You can’t perform that action at this time.
0 commit comments