Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Compass output_style doesn't work #67

Open
manuelmeurer opened this issue Feb 10, 2012 · 2 comments
Open

Setting Compass output_style doesn't work #67

manuelmeurer opened this issue Feb 10, 2012 · 2 comments

Comments

@manuelmeurer
Copy link

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.

@trvsdnn
Copy link
Owner

trvsdnn commented Feb 10, 2012

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.

@manuelmeurer
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants