-
Notifications
You must be signed in to change notification settings - Fork 143
Support config/vite.rb for advanced configuration #162
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Background 📜
Currently, there are two main ways to configure Vite Ruby:
- a shared
config/vite.jsonfile - override settings using environment variables
Feature Request ✨
Adding support for an optional config/vite.rb file that is called when resolving the configuration would make it easier to configure ViteRuby.env as needed regardless of how Vite Ruby is executed (rake task, binstub, or bundle exec).
Documentation 📖
Since any configuration in this ruby file can not be read when invoking the node vite executable directly, this would be regarded an advanced feature, and config/vite.rb would not be added during installation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request