- Add support for Vite 2.0.0-beta.56, which modified the manifest to output a
css
field in the manifest. - Start generating an assets manifest, since 2.0.0-beta.51 stopped including non-JS entrypoints in the manifest.
- Fix bug in
assetHost
that causedbase
to be configured incorrectly. - Allow installing
vite
andvite-plugin-ruby
as devDependencies, and install them when precompiling assets. - Move
base
to the configuration root after Vite's update in beta.38
- Use
path_to_asset
invite_asset_path
so that it's prefixed automatically when using a CDN (config.action_controller.asset_host
).
- Ensure
configPath
andpublicDir
are scoped fromroot
, both in Ruby and JS.
- Change the default of
sourceCodeDir
toapp/frontend
, add instructions for folks migrating from aapp/javascript
structure.
- Add
vite_client_tag
to ensure the Vite client can be loaded in apps that don't use any imports.
- Ensure running
bin/rake assets:precompile
automatically invokesvite:build
.
- Automatically add
<link rel="modulepreload">
and<link rel="stylesheet">
when usingvite_javascript_tag
, which simplifies usage.
- Remove Vue specific examples from installation templates, to ensure they always run.
Initial Version