Skip to content

Instantly share code, notes, and snippets.

@arthurnn
Created February 4, 2014 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthurnn/8813369 to your computer and use it in GitHub Desktop.
Save arthurnn/8813369 to your computer and use it in GitHub Desktop.
require 'sprockets/rails/task'
Rake::Task["assets:environment"].clear
Rake::Task["assets:precompile"].clear
Rake::Task["assets:clean"].clear
Rake::Task["assets:clobber"].clear
Sprockets::Rails::Task.new(Rails.application) do |t|
t.manifest = lambda do
app = Rails.application
Sprockets::Manifest.new(app.assets, File.join(app.root, 'public', app.config.assets.prefix, 'manifest.json'))
end
end
@steverob
Copy link

steverob commented Feb 5, 2014

What does assets:clobber do?? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment