Configuration

Breakfast has several configuration options available. Modify them in config/environments/development.rb. Below are all of the options and their defaults.

# For reload strategies note these are just defaults.
# As of 0.3.0 you can dynamically switch the reload
# strategy with the Breakfast bar

# Reload strategy to use when an HTML Template changes.
# Default: :turbolinks
# Options:
#   - :turbolinks
#     Will revisit the current page using turbolinks.
#     This is much quicker than doing a full page reload.
#
#   - :page
#     Does a refresh of the page.
#
#   - :off
#     Do nothing
#
config.breakfast.html_reload_strategy = :turbolinks


# Reload strategy to use when a JS file changes.
# Default: :page
# Options:
#   - :page
#     Does a refresh of the page.
#
#   - :off
#     Do nothing
#
# Coming soon - :hot_reload - Add / Remove / Change JS
# modules without needing a page reload
#
config.breakfast.js_reload_strategy = :page


# Reload strategy to use when a CSS file changes.
# Default: :hot
# Options:
#   - :hot
#     Re-injects the new CSS without a page refresh.
#
#   - :page
#     Does a refresh of the page.
#
#   - :off
#     Do nothing
#
config.breakfast.css_reload_strategy = :hot

# Reload strategy to use when a Ruby file changes.
# Default: :off
# Options:
#   - :turbolinks
#     Will revisit the current page using turbolinks.
#     This is much quicker than doing a full page reload.
#
#   - :page
#     Does a refresh of the page.
#
#   - :off
#     Do nothing
#
config.breakfast.ruby_reload_strategy = :off


# Where compiled assets get outputted. Should match
# the public option in brunch_config.js
config.breakfast.asset_output_folder = Rails.root.join("public", "assets")


# Where your views and ruby source code is located.
# Defauls to app folder. If you want breakfast to
# look at other folders append them with
# config.breakfast.source_code_folders << Rails.root.join("path")
#
config.breakfast.source_code_folders = [Rails.root.join("app")]


# Environments to run Breakfast in.
config.breakfast.environments = %w(development)


# Turn on Asset Fingerprinting. Defaults to true in
# staging / production and false in development / test.
config.breakfast.digest = true