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.



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

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

Instance Method Details

#asset_bundle_name(user_agent) ⇒ Object



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

def asset_bundle_name(user_agent)
  manifest = (user_agent)
  manifest["identifier"] && manifest["identifier"]["target"] || manifest["name"]
end

#asset_dependencies(entrypoint_name, user_agent) ⇒ Object

:nodoc:



23
24
25
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 23

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

#metadataObject



27
28
29
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 27

def 
  @metadata ||= 
end