frank icon indicating copy to clipboard operation
frank copied to clipboard

Setting Compass output_style doesn't work

Open manuelmeurer opened this issue 13 years ago • 2 comments

I am trying to set the Compass output style like so:

Compass.configuration do |config|
  config.output_style = :compressed
end

but the generated CSS is still :expanded. I also tried adding

Frank.sass_options = Compass.sass_engine_options

but to no avail.

manuelmeurer avatar Feb 10 '12 09:02 manuelmeurer

Not sure about this one, I don't really use compass so I haven't noticed if it's something that was recently broken or what. I'll see if I can find some time to dig into it, but I'm working on a new release which is a pretty major refactor, so if you can get it to work with something that feels crappy, go for it, and i'll look at making it feel better in the next major release.

trvsdnn avatar Feb 10 '12 13:02 trvsdnn

Alright, I'll dig into it some more soon and let you know if I find a solution.

Btw. the problem is only with output_style, setting other Compass configs works fine in setup.rb like this:

production = Frank::CLI.instance_variable_get('@options')[:production]

Compass.configuration do |config|
  if production
    config.asset_host do |asset|
      'http://cdn.mysite.com'
    end
    config.output_style  = :compressed # This doesn't work...
  end

  config.images_dir      = 'images'
  config.javascripts_dir = 'js'
  config.css_dir         = 'css'
end

manuelmeurer avatar Feb 11 '12 11:02 manuelmeurer