lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.5.8 vs lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.6.0

- old
+ new

@@ -9,22 +9,14 @@ def initialize(message, orig) super "#{message} (original error #{orig})" end end - # Raised if a supplied entry point does not exist in the webpack manifest - class EntryPointMissingError < StandardError - end - class << self # :nodoc: def asset_paths(source) paths = manifest[source] - if paths - paths - else - raise EntryPointMissingError, "Can't find entry point '#{source}' in webpack manifest" - end + paths || {} end def manifest if ::Rails.env.production? # Cache at class level, as JSON loading/parsing can be expensive.