Skip to content

Commit

Permalink
fix: take new manifest location for Vite 5 into account
Browse files Browse the repository at this point in the history
  • Loading branch information
wout committed Apr 6, 2024
1 parent 1d35565 commit a101bbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lucky_vite_runners/asset_manifest_builder.cr
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ private struct LuckyViteAssetManifestBuilder
end

private def resolve_manifest_path
File.expand_path(File.join(config.out_dir, "manifest.json"))
dir = File.join(config.out_dir, ".vite")

File.expand_path(
File.join(Dir.exists?(dir) ? dir : config.out_dir, "manifest.json")
)
end

private def retry_or_raise_error
Expand Down

0 comments on commit a101bbb

Please sign in to comment.