While in development mode, all my css and javascript files are combined into one, while in my browser inspector, I can only see the one css file Why is this happening? Thanks!
This is my layout code for those lines:
= stylesheet_link_tag 'application', media: 'all'
= javascript_include_tag 'application', 'data-turbolinks-track' => true, defer: defer ? :defer : false
I resolved the problem by changing this line to true in
config/environments/development.rb
config.assets.debug = true
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.