lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.5.2 vs lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.5.3

- old
+ new

@@ -47,10 +47,12 @@ rescue => e raise ManifestLoadError.new("Could not load compiled manifest - have you run `rake sewing_kit:build`?", e) end def mode - ENV['NODE_ENV'] || Rails.env.to_s || 'production' + env = ENV['NODE_ENV'] || Rails.env.to_s || 'production' + env = 'development' if env == 'test' + env end end end end end