3.0.19 (2024-11-05)
3.0.18 (2024-10-21)
3.0.17 (2023-10-05)
3.0.16 (2023-09-22)
3.0.15 (2023-06-19)
- add nonce by default to react refresh tag (close #249) (a31f0a9)
- Use javascript_tag helper for vite_react_refresh_tag (#372) (238c6bd), closes #249
3.0.14 (2023-02-08)
- allow javascript_include_tag options to vite_client_tag (#337) (417bcf3)
- make vite_client_tag crossorigin: "anonymous" by default (404a15a)
3.0.13 (2022-11-13)
3.0.12 (2022-08-12)
- allow framework-specific libraries to extend the CLI (a0ed66f)
3.0.11 (2022-08-11)
3.0.10 (2022-06-15)
3.0.9 (2022-04-29)
3.0.8 (2022-04-14)
3.0.7 (2022-03-17)
3.0.6 (2022-02-04)
3.0.5 (2022-01-18)
- update example setup from turbolinks to @hotwired/turbo (e1750bf)
3.0.4 (2022-01-02)
3.0.3 (2021-12-22)
3.0.2 (2021-12-12)
- add variable declaration to import.meta.globEager (close #154) (#155) (9ada2e8)
- comment back glob import (943e7f1)
3.0.1 (2021-10-29)
- enable hmr when running tests in development with vite dev server (e253bba)
3.0.0 (2021-08-16)
See #116 for features and breaking changes.
2.0.13 (2021-07-27)
- Set config.javascript_path so that zeitwerk ignores frontend files (bab359f)
2.0.12 (2021-05-24)
- Fix typo in comment in example entrypoint in Rails (78b3104)
2.0.11 (2021-05-10)
- Avoid reference to
dry-cli
during installation, use internal APIs instead (f5b87e)
2.0.10 (2021-04-21)
- Add helpers to enable HMR when using @vitejs/plugin-react-refresh (a80f286)
2.0.9 (2021-04-15)
- Allow passing additional attributes to scripts and stylesheets. (edf6019)
2.0.8 (2021-03-20)
- Simplify installation of build dependencies by using package manager flags (5c8bb62)
2.0.7 (2021-03-19)
2.0.6 (2021-03-18)
- Add more help text in the example entrypoints (87d6f14)
2.0.5 (2021-03-18)
- Using a .jsx extension in a tag helper in development (a56491b)
2.0.4 (2021-03-09)
- Detect installations of the latest version of Webpacker (app/packs) (e9a3bc0)
2.0.3 (2021-03-07)
- Add a bounded requirement to
vite_ruby
dependency.
- Automatically infer
app/javascript
as thesourceCodeDir
if it exists.
- Add the CSP rules commented out when installing, in case the user hasn't uncommented them yet.
- Extracted core functionality to
vite_ruby
. - User-facing API hasn't really changed, but internal classes have been renamed.
- Installation script now injects tags to
application.html.erb
if it exists.
- 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