1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-24 07:06:34 +09:00

Simplify browserify+babelify config (#2377)

This commit is contained in:
Nolan Lawson 2017-04-23 17:19:10 -07:00 committed by Eugen
parent 549ce78cf5
commit 1e2a5dded7

View File

@ -72,7 +72,8 @@ module Mastodon
config.middleware.use Rack::Attack
config.middleware.use Rack::Deflater
config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] --plugins [ transform-decorators-legacy ] ] --extension=".jsx"'
# babel config can be found in .babelrc
config.browserify_rails.commandline_options = '--transform babelify --extension=".jsx"'
config.browserify_rails.evaluate_node_modules = true
config.to_prepare do