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
Written by Jeffrey Herb
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Compass
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#