diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-13 22:21:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 22:21:20 +0200 |
commit | 485310a43c23ecaf2670b8a7c9203110ea4fc7dc (patch) | |
tree | 7395e1f4042882f5fd91e8a4f5e2ba726441b2de | |
parent | 057567d5482627462192485134e0bd619c4c0f29 (diff) |
Make browserify respect changes in node_modules for asset compilation (#1722)
-rw-r--r-- | config/application.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index f3f1f7bf7..5a3548d6c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -62,7 +62,9 @@ module Mastodon config.middleware.use Rack::Attack config.middleware.use Rack::Deflater - config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"' + config.browserify_rails.source_map_environments << 'development' + config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"' + config.browserify_rails.evaluate_node_modules = true config.to_prepare do Doorkeeper::AuthorizationsController.layout 'public' |