Last Updated: February 25, 2016
·
2.125K
· jeffherb

Compass add ".min" to the filename

Force Compass to rename your SASS/SCSS on build! Simply add the following to the config.rb

require 'fileutils'

on_stylesheet_saved do |file|
  if File.exists?(file)
    filename = File.basename(file, File.extname(file))
    File.rename(file, "css" + "/" + filename + ".min" + File.extname(file))
  end
end