ruby on rails - Precompile all the assets without having to add them to app-ion.css/js -


how can precompile css, js , images (and in subdirectories also) under my_app/app/assets without having add of them (that don't want to) application.css/js? rake asset:precompile:all?

all images precompiler running default task.

if want precompile js , css, can add initializers/assest.rb

config.assets.precompile += [dir["#{rails.root}/app/assets/javascripts/**/*"].reject { |fn| file.directory?(fn) }] config.assets.precompile += [dir["#{rails.root}/app/assets/stylesheets/**/*"].reject { |fn| file.directory?(fn) }] 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -