I have my main application css and I want to exclude my backend stylesheets since the styles all bleed over when application.css executed *=require_tree .
I currently have my folders setup like so:
assets/
stylesheets/
main/ #application.css ##other css files for front end
backend/ #backend.css ##other css files for back end
My application.css is as follows:
/*
*= require_self
*= require foundation_and_overrides
*= require_tree ./main/
*/
backend.css
/*
*= require_self
*= require foundation_and_overrides
*= require_tree ./backend/
*/
in my application.rb
config.assets.precompile += ['application.css', 'backend.css']
my development.rb
config.cache_classes = false
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
I tried moving the stylesheets around and playing with different directories, but I would either have the stylesheet not load at all or would receive "could not find foundation_and_overrides"...
Is there an easy clean way to do this? I just want to exclude a couple stylesheets from being compiled with application.css