lib/sewing_kit/webpack/compiler.rb in sewing_kit-0.5.1 vs lib/sewing_kit/webpack/compiler.rb in sewing_kit-0.5.2
- old
+ new
@@ -28,10 +28,12 @@
].reject(&:empty?)
end
private
def node_env
- ENV['NODE_ENV'] || Rails.env.to_s
+ env = ENV['NODE_ENV'] || Rails.env.to_s
+ env = 'development' if env == 'test'
+ env
end
end
end
end