我将位置输入为“ Assets ”;在 Assets 中,我在不同的子文件夹中有各种 coffeescripts less 文件等
我创建了一个 Assetfile 作业!类似的东西
require "rake-pipeline-web-filters"
require "rake-pipeline-web-filters/helpers"
output "public"
input "app/assets/javascripts"
match "**/*.coffee" do
coffee_script
end
## Take all JS inputs and wrap each of them in code to
## register them with the Minispade module loader.
match "**/*.js" do
minispade :module_id_generator => proc { |input| input.path.sub(/lib\//, 'timelog/').sub(/\.js$/, '') }
concat "javascripts/app.js"
end
# Take all Less inputs and compile them with Less
input "app/assets/stylesheets"
match "application.css.less" do
filter(Rake::Pipeline::Web::Filters::TiltFilter) do |input|
input.sub(/\.less/, '.css')
end
end
问题?
如何阻止 asswets 文件夹中的文件被转储到输出文件夹,即 public?
各种各样的废话都从 Assets 中倾倒到公用文件夹中
最佳答案
尝试链轮 gem 。它可能会解决问题。
关于ruby-on-rails - rake-pipeline 在指定的输出目录中进行脂肪转储,我该如何停止呢?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8823055/