Skip to content

Commit

Permalink
Only set config variable if provided (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRACK authored Dec 22, 2023
1 parent 7715c86 commit c8bb06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite_ruby/lib/vite_ruby/cli/vite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c8bb06b

Please sign in to comment.