我有我的主要應用CSS和我想排除我的後端樣式,因爲樣式都流血了,當application.css執行*=require_tree .
樣式表在Rails應用程序不正確作用域
目前,我有我的文件夾的設置,像這樣:
assets/
stylesheets/
main/ #application.css ##other css files for front end
backend/ #backend.css ##other css files for back end
我application.css如下:
/*
*= require_self
*= require foundation_and_overrides
*= require_tree ./main/
*/
backend.css
/*
*= require_self
*= require foundation_and_overrides
*= require_tree ./backend/
*/
在我的application.rb中
config.assets.precompile += ['application.css', 'backend.css']
我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
我試着走動的樣式表,並用不同的目錄玩,但我想要麼樣式表無法加載
在所有或將收到「找不到foundation_and_overrides」...
有沒有一個簡單的乾淨的方式來做到這一點? 我只是想排除幾個樣式表與application.css編譯