Class: Webpack::Manifest::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @url = ENV.fetch("WEBPACK_MANIFEST_URL") { "/path/to/manifest.json" }
  @cache = ENV.fetch("WEBPACK_MANIFEST_CACHE", false)
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



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

def cache
  @cache
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end