lib/sewing_kit/webpack/manifest/base.rb in sewing_kit-0.31.0 vs lib/sewing_kit/webpack/manifest/base.rb in sewing_kit-0.31.1

- old
+ new

@@ -25,11 +25,11 @@ def manifest metadata['assets'] end - def load_metadata_from_node + def self.load_metadata_from_node begin stdout, stderr, status = Open3.capture3('node_modules/.bin/sewing-kit', 'manifest', "--mode=#{mode}") rescue => e raise NodeSewingKitNotRunnable.new(mode, e) end @@ -41,12 +41,10 @@ rescue => e raise ManifestParseError, e end end - protected - - def mode + def self.mode ENV['NODE_ENV'] || Rails.env.to_s || 'production' end end end end