lib/shakapacker/dev_server_runner.rb in shakapacker-7.2.0.rc.0 vs lib/shakapacker/dev_server_runner.rb in shakapacker-7.2.0

- old
+ new

@@ -46,11 +46,11 @@ $stdout.puts "The following CLI switches are not supported by Shakapacker: #{unsupported_switches.join(' ')}. Please edit your command and try again." exit! end if @argv.include?("--https") && !@https - $stdout.puts "Please set https: true in shakapacker.yml to use the --https command line flag." + $stdout.puts "--https requires that 'server' in shakapacker.yml is set to 'https'" exit! end end def detect_port! @@ -84,10 +84,13 @@ end cmd += ["--config", @webpack_config] cmd += ["--progress", "--color"] if @pretty - cmd += ["--hot"] if @hot + # Default behavior of webpack-dev-server is @hot = true + cmd += ["--hot", "only"] if @hot == "only" + cmd += ["--no-hot"] if !@hot + cmd += @argv Dir.chdir(@app_path) do Kernel.exec env, *cmd end