lib/vite_ruby/config.rb in vite_ruby-3.2.5 vs lib/vite_ruby/config.rb in vite_ruby-3.2.6
- old
+ new
@@ -21,9 +21,14 @@
# Internal: Path where vite-plugin-ruby outputs the assets manifest file.
def assets_manifest_path
build_output_dir.join('manifest-assets.json')
end
+ # Internal: Path to the manifest files generated by Vite and vite-plugin-ruby.
+ def manifest_paths
+ [manifest_path, assets_manifest_path].select(&:exist?)
+ end
+
# Public: The directory where Vite will store the built assets.
def build_output_dir
root.join(public_dir, public_output_dir)
end