Skip to content

Commit

Permalink
Only add dependendency if file really exist.
Browse files Browse the repository at this point in the history
This might be a fake filename, eg by NOT IMPORTED prefix by compass-import-once.
  • Loading branch information
fpellanda committed Feb 13, 2017
1 parent b6ff83d commit 08068b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compass-rails/patches/sass_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def evaluate(context, locals, &block)
context.depend_on(f)
end
else
context.depend_on(filename)
context.depend_on(filename) if File.exist?(filename)
end
end

Expand Down

0 comments on commit 08068b4

Please sign in to comment.