We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c05a6f4 + 1db7aa0 commit 8bf70f6Copy full SHA for 8bf70f6
README.md
@@ -37,7 +37,12 @@ You can also redefine the task with the built in task generator.
37
38
``` ruby
39
require 'sprockets/rails/task'
40
-Sprockets::Rails::Task.new do |t|
+# clean the old tasks
41
+Rake::Task["assets:environment"].clear
42
+Rake::Task["assets:precompile"].clear
43
+Rake::Task["assets:clean"].clear
44
+Rake::Task["assets:clobber"].clear
45
+Sprockets::Rails::Task.new(Rails.application) do |t|
46
t.environment = lambda { Rails.application.assets }
47
t.assets = %w( application.js application.css )
48
t.keep = 5
0 commit comments