Skip to content

Instantly share code, notes, and snippets.

@djalmaaraujo
Created October 1, 2012 22:48
Show Gist options
  • Save djalmaaraujo/3814970 to your computer and use it in GitHub Desktop.
Save djalmaaraujo/3814970 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'compass'
filePath = $project.getProperty('file.path')
files = Dir.glob(filePath)
files.each do | file |
fileContent = File.read(file)
engine = Sass::Engine.new(
fileContent,
{
:syntax => :scss,
:style => :compressed
}
)
File.open(file, 'w') { |f| f.write(engine.render) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment