Skip to content

Instantly share code, notes, and snippets.

@lozandier
Created August 14, 2013 03:30
Show Gist options
  • Save lozandier/6227774 to your computer and use it in GitHub Desktop.
Save lozandier/6227774 to your computer and use it in GitHub Desktop.
require 'autoprefixer-rails'
on_stylesheet_saved do |file|
css = File.read(file)
File.open(file, 'w') { |io| io << AutoprefixerRails.compile(css) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment