about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-18 00:36:01 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-18 00:36:01 +0200
commitc9a7e6e1e3d60e142c035006e7806643c173f63a (patch)
treeca54c1fba91245dd7e18e8ffea152e8d3c3811ab
parent6c05e3063a4cd2eccb20baad8897649fdb860217 (diff)
Enable source maps
-rw-r--r--config/application.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb
index 3734ce928..d6a3aab15 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -30,6 +30,7 @@ module Mastodon
     config.middleware.use Rack::Attack
     config.middleware.use Rack::Deflater
 
+    config.browserify_rails.source_map_environments += %w[development production]
     config.browserify_rails.commandline_options = "--transform [ babelify --presets [ es2015 react ] ] --extension=\".jsx\""
 
     config.to_prepare do