diff options
| author | cedricnjanga | 2017-10-06 10:17:17 +0200 | 
|---|---|---|
| committer | cedricnjanga | 2017-10-06 10:17:17 +0200 | 
| commit | b6f08e58fae35d5dd8a610af31c2950b37746695 (patch) | |
| tree | 989843dd674c41ff73eb75bd630ce4cc91fff91b /config/application.rb | |
| parent | 08517c27551a2dd8b227f6662f4c41574a36d81e (diff) | |
| download | chouette-core-b6f08e58fae35d5dd8a610af31c2950b37746695.tar.bz2 | |
Add webpacker gem and migrate the React apps
Diffstat (limited to 'config/application.rb')
| -rw-r--r-- | config/application.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/config/application.rb b/config/application.rb index 05a9752b6..169c13e10 100644 --- a/config/application.rb +++ b/config/application.rb @@ -28,7 +28,7 @@ module ChouetteIhm      config.i18n.default_locale = ENV.fetch('RAILS_LOCALE', 'fr').to_sym      # Configure Browserify to use babelify to compile ES6 -    config.browserify_rails.commandline_options = "-t [ babelify --presets [ react es2015 ] ]" +    # config.browserify_rails.commandline_options = "-t [ babelify --presets [ react es2015 ] ]"      config.active_record.observers = [:route_observer, :calendar_observer]      config.active_record.raise_in_transactional_callbacks = true @@ -40,9 +40,9 @@ module ChouetteIhm          Rails.application.config.assets.precompile += %w(spec_helper.js)          # Make sure Browserify is triggered when          # asked to serve javascript spec files -        config.browserify_rails.paths << lambda { |p| -            p.start_with?(Rails.root.join("spec/javascripts").to_s) -        } +        # config.browserify_rails.paths << lambda { |p| +        #     p.start_with?(Rails.root.join("spec/javascripts").to_s) +        # }      end    end  end | 
