Add Vite for javascript assets
All threads resolved!
All threads resolved!
Compare changes
+ 1
− 0
This MR adds vite as a frontend runner for javascript assets instead of webpack in development mode.
This is intended only for developer experience evaluation purposes. That's why it's behind a feature flag.
This MR fixes the issue with the CNG deployments from Add Vite for javascript assets in development mode (!115469 - merged).
echo "Feature.enable(:vite)" | gdk rails c
bundle exec vite dev
Current configuration assumes you've set up gdk.test
domain on a specific IP address. In case you're running it on localhost
please change config/vite.json
development host to localhost
.
Make sure you have 10GB of RAM free.
NODE_OPTIONS="--max_old_space_size=10240" bundle exec vite build