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
Post a Comment