lib/tasks/vite/build.rake in vite_rails-1.0.8 vs lib/tasks/vite/build.rake in vite_rails-1.0.9
- old
+ new
@@ -11,14 +11,10 @@
end
namespace :vite do
desc 'Compile JavaScript packs using vite for production with digests'
task build: [:'vite:verify_install', :environment] do
- ViteRails.with_node_env(ENV.fetch('NODE_ENV', 'production')) do
- ViteRails.ensure_log_goes_to_stdout do
- ViteRails.build || exit!
- end
- end
+ ViteRails.build_from_rake
end
end
# Compile packs after we've compiled all other assets during precompilation
skip_vite_precompile = %w[no false n f].include?(ENV['VITE_RUBY_PRECOMPILE'])