Skip to content

Commit

Permalink
Skip copying paths that reference external assets
Browse files Browse the repository at this point in the history
(Allows the use of google fonts with @import)
  • Loading branch information
Amiel Martin committed Feb 10, 2012
1 parent 0ea1df5 commit 64454f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/showoff.rb
Expand Up @@ -447,6 +447,7 @@ def self.do_static(what)
File.open(css_path) do |file|
data = file.read
data.scan(/url\((.*)\)/).flatten.each do |path|
next if path.match('^http')
logger.debug path
dir = File.dirname(path)
FileUtils.makedirs(File.join(file_dir, dir))
Expand Down

0 comments on commit 64454f2

Please sign in to comment.