- Raise an error instead of logging when manifest file could not be found, thanks @joeppeeters! PR 8
- Change entry format from Struct to a tuple list / Keyword
[
{:entry_name, "src/main.tsx"},
{:css, "assets/main.aba08cbf.css"},
{:module, "assets/main.aef2b0ab.js"},
{:import_css, "assets/dynamic-import-polyfill.0f681641.css"},
{:import_module, "assets/dynamic-import-polyfill.b75f6adf.js"},
{:import_module, "assets/vendor.2c7f0e08.js"}
]
Somehow the version on Hex.pm for 0.2.2 has the 0.2.1 version in it. Bumping version to publish the correct one.
Vite.Manifest.get_css
returns an empty list, if CSS values are missing in the manifest (closes mindreframer#1)Vite.Manifest.from_raw
includes a default[]
for missingcssfiles
Vite.react_refresh_snippet()
to enable hot-reload for React.js + documentation
- simpler integration into HTML templates
Vite.vite_client()
for developmentVite.vite_snippet(entry_point)
Vite.inlined_phx_manifest()
to simplify accessing digested asset paths in JSVite.Cache
supports more than a single cache item
- Basic parsing for Vite manifests implemented