Class: Webpack::DevServer::Configuration
- Inherits:
-
Object
- Object
- Webpack::DevServer::Configuration
- Defined in:
- lib/webpack/dev_server/configuration.rb
Instance Attribute Summary collapse
-
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
-
#proxy_path ⇒ Object
Returns the value of attribute proxy_path.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_timeout ⇒ Object
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_path ⇒ Object
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 |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/webpack/dev_server/configuration.rb', line 5 def url @url end |