lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.8.0 vs lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.27.0

- old
+ new

@@ -45,12 +45,12 @@ end end class << self # :nodoc: - def asset_paths(entrypoint_name) - instance.asset_paths(entrypoint_name) + def asset_dependencies(entrypoint_name) + instance.asset_dependencies(entrypoint_name) end def clear_cache! @instance = nil end @@ -59,10 +59,12 @@ instance.manifest end def instance return @instance if @instance - @instance = if Rails.env.development? && ENV['SK_SIMULATE_PRODUCTION'] != '1' + + mode = ENV['NODE_ENV'] || Rails.env.to_s + @instance = if mode == 'development' && ENV['SK_SIMULATE_PRODUCTION'] != '1' Development.new else Production.new end end