Class: SewingKit::Webpack::Manifest::Production

Inherits:
Base
  • Object
show all
Defined in:
lib/sewing_kit/webpack/manifest/production.rb

Instance Method Summary collapse

Methods inherited from Base

#clear_cache!, #manifest

Constructor Details

#initializeProduction

Returns a new instance of Production.



10
11
12
13
14
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 10

def initialize
  @cache_by_user_agent = {}
  @metadata = nil
  @metadata_path = nil
end

Instance Method Details

#asset_bundle_name(user_agent) ⇒ Object



16
17
18
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 16

def asset_bundle_name(user_agent)
  (user_agent)['name']
end

#asset_dependencies(entrypoint_name, user_agent) ⇒ Object

:nodoc:



21
22
23
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 21

def asset_dependencies(entrypoint_name, user_agent)
  (user_agent)['entrypoints'][entrypoint_name]
end

#metadataObject



25
26
27
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 25

def 
  @metadata ||= 
end