Sha256: 4e47e7e12da6fdaac660984f6bb0dac86b63d5221421268cad9f1cf8aa757f91
Contents?: true
Size: 688 Bytes
Versions: 9
Compression:
Stored size: 688 Bytes
Contents
# frozen_string_literal: true require 'sewing_kit/webpack/manifest/base' module SewingKit module Webpack class Manifest class Production < Base @metadata = nil @metadata_path = nil # :nodoc: def asset_dependencies(entrypoint_name) metadata['entrypoints'][entrypoint_name] end def metadata # Cache at class level, as JSON loading/parsing can be expensive. @metadata ||= load_metadata end def load_metadata result = load_metadata_from_node raise LegacyManifestError, result unless result['entrypoints'] result end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems