title: Can SASS/Compass compile foo.scss to foo.min.css and foo.dbg.css?
body: <p>I want to compile a set of <code>.scss</code> files to different filenames.</p>
  
  <p>In development, I want to compile eg. <code>foo.scss</code> to <code>foo.dbg.css</code> (unminified and with comments). In production, I want to have eg. <code>foo.min.css</code> (minified).</p>
  
  <p>Is there a way to tell SASS/Compass what to use as the target extension? A command-line switch? A <code>config.rb</code> option?</p>
  
  <p>Writing a script that first compiles and then renames files seems like a bad option, because then I can't use <code>compass watch</code> efficiently.</p>
  
  <p>(Well, I <em>could</em> compile to two different output directories and then write a script that copies the files from there. That feels a bit clumsy.)</p>
  
  <p><strong>UPDATE:</strong> I worked around the problem by writing a simplified version of the watch code. When something changes, it triggers a recompile to two different output directories, then renames and moves the files to place.</p>