diff --git a/vite_ruby/lib/vite_ruby/cli/vite.rb b/vite_ruby/lib/vite_ruby/cli/vite.rb index 09c64a9..caf0673 100644 --- a/vite_ruby/lib/vite_ruby/cli/vite.rb +++ b/vite_ruby/lib/vite_ruby/cli/vite.rb @@ -18,7 +18,7 @@ def self.shared_options def call(mode:, args: [], clobber: false, js_config_path: nil, **boolean_opts) ViteRuby.env['VITE_RUBY_MODE'] = mode - ViteRuby.env['VITE_RUBY_JS_CONFIG_PATH'] = js_config_path + ViteRuby.env['VITE_RUBY_JS_CONFIG_PATH'] = js_config_path if js_config_path ViteRuby.commands.clobber if clobber