Class: Webpack::DevServer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/webpack/dev_server/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/webpack/dev_server/configuration.rb', line 7

def initialize
  @url = ENV.fetch("WEBPACK_DEV_SERVER_URL") { "http://0.0.0.0:8080" }
  @connect_timeout = ENV.fetch("WEBPACK_DEV_SERVER_CONNECT_TIMEOUT") { 0.1 }
  @proxy_path = ENV.fetch("WEBPACK_DEV_SERVER_PROXY_PATH") { "/webpack/" }
end

Instance Attribute Details

#connect_timeoutObject

Returns the value of attribute connect_timeout.



5
6
7
# File 'lib/webpack/dev_server/configuration.rb', line 5

def connect_timeout
  @connect_timeout
end

#proxy_pathObject

Returns the value of attribute proxy_path.



5
6
7
# File 'lib/webpack/dev_server/configuration.rb', line 5

def proxy_path
  @proxy_path
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/webpack/dev_server/configuration.rb', line 5

def url
  @url
end