Class: SewingKit::Webpack::Manifest::Production
- Defined in:
- lib/sewing_kit/webpack/manifest/production.rb
Instance Method Summary collapse
- #asset_bundle_name(user_agent) ⇒ Object
-
#asset_dependencies(entrypoint_name, user_agent) ⇒ Object
:nodoc:.
-
#initialize ⇒ Production
constructor
A new instance of Production.
- #metadata ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ Production
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 |
#metadata ⇒ Object
27 28 29 |
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 27 def @metadata ||= end |