【发布时间】:2015-03-01 22:26:27
【问题描述】:
类似于(在初始化程序中):
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
具体来说,我想运行一个 gulp 任务来将一些 Javascript 与一些特殊的预处理器捆绑在一起,我宁愿不重写我的 gulpfile 来让资产管道处理所有事情......我也希望这个工作如果可能的话,在 Heroku 上不需要自定义 buildpack。有什么想法吗?大概 Sprockets 有这些类型的钩子。
【问题讨论】:
标签: ruby-on-rails heroku sprockets