Skip to content

Commit 8bf70f6

Browse files
committed
Merge pull request #112 from arthurnn/patch-1
Update READMECustomize example
2 parents c05a6f4 + 1db7aa0 commit 8bf70f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ You can also redefine the task with the built in task generator.
3737

3838
``` ruby
3939
require 'sprockets/rails/task'
40-
Sprockets::Rails::Task.new do |t|
40+
# 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|
4146
t.environment = lambda { Rails.application.assets }
4247
t.assets = %w( application.js application.css )
4348
t.keep = 5

0 commit comments

Comments
 (0)