lib/sewing_kit/webpack/dev.rb in sewing_kit-0.97.0 vs lib/sewing_kit/webpack/dev.rb in sewing_kit-0.97.1

- old
+ new

@@ -48,29 +48,31 @@ Process.detach pid end def command command_list = [ + 'node', + heap_config, sewing_kit_bin, 'dev', '--logLevel', log_level, - ].concat(options) + ].compact.concat(options) if debug_mode? command_list.push(['--debug']) end command_list.join(' ') end - def sewing_kit_bin + def heap_config heap_size = SewingKit.configuration.development_options[:heap] - heap_config = if heap_size - "node --max-old-space-size=#{heap_size} " - end + return "--max-old-space-size=#{heap_size}" if heap_size + end - bin = "#{heap_config}#{SewingKit.configuration.dev_server_sewing_kit_bin}" + def sewing_kit_bin + bin = SewingKit.configuration.dev_server_sewing_kit_bin raise NodeSewingKitNotInstalled unless File.exist?(bin) bin end def log_level