Something like (in an initializer):
Sprockets.before_precompile do
# some custom stuff that preps or autogenerates some asset files
# that should then be considered in the asset pipeline as if they were checked in
end
Specifically, I'd like to run a gulp task to bundle some Javascript with some special preprocessors, and I'd rather not rewrite my gulpfile to get the asset pipeline to handle everything... and I also want this to work on Heroku without needing a custom buildpack if at all possible. Any thoughts? Presumably Sprockets has these types of hooks.