Sha256: b567ad268d9a4873d096ab9f8482e193ff1a70e2ca38d8db063744e575e671f2

Contents?: true

Size: 555 Bytes

Versions: 5

Compression:

Stored size: 555 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
          manifest = SewingKit::CachedProductionManifest
          raise LegacyManifestError, manifest unless manifest['entrypoints']
          manifest
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sewing_kit-0.32.0.pre.beta.pre.4 lib/sewing_kit/webpack/manifest/production.rb
sewing_kit-0.32.0.pre.beta.pre.3 lib/sewing_kit/webpack/manifest/production.rb
sewing_kit-0.32.0.pre.beta.pre.1 lib/sewing_kit/webpack/manifest/production.rb
sewing_kit-0.31.2 lib/sewing_kit/webpack/manifest/production.rb
sewing_kit-0.31.1 lib/sewing_kit/webpack/manifest/production.rb