class ViteRuby::Builder
def log_build_result(_stdout, stderr, status)
Internal: Outputs the build results.
def log_build_result(_stdout, stderr, status) if status.success? logger.info "Build with Vite complete: #{ config.build_output_dir }" logger.error stderr unless stderr.empty? else logger.error stderr logger.error status logger.error 'Build with Vite failed! ❌' logger.error '❌ Check that vite and vite-plugin-ruby are in devDependencies and have been installed. ' if stderr.include?('ERR! canceled') end end