Browse Source

Simplify browserify+babelify config (#2377)

closed-social-v3
Nolan Lawson 7 years ago
committed by Eugen
parent
commit
1e2a5dded7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      config/application.rb

+ 2
- 1
config/application.rb 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

Loading…
Cancel
Save