lib/tasks/vite.rake in vite_ruby-3.0.9 vs lib/tasks/vite.rake in vite_ruby-3.0.10
- old
+ new
@@ -42,9 +42,10 @@
unless ENV['VITE_RUBY_SKIP_ASSETS_PRECOMPILE_EXTENSION'] == 'true'
if Rake::Task.task_defined?('assets:precompile')
Rake::Task['assets:precompile'].enhance do |task|
prefix = task.name.split(/#|assets:precompile/).first
+ Rake::Task["#{ prefix }vite:install_dependencies"].invoke
Rake::Task["#{ prefix }vite:build"].invoke
end
else
Rake::Task.define_task('assets:precompile' => ['vite:install_dependencies', 'vite:build'])
end