Skip to content

compass/sass config not accessible? #126

@michaelparenteau

Description

@michaelparenteau

Expected behavior and actual behavior

When in config.rb:

compass_config do |config|
  config.output_style = :expanded
  config.line_comments = true
end
activate :sprockets

I would expect to see output of css in development to be "expanded" and to see "line comments", but no. I am seeing css output as :nested. I also tried:

set :sass, output_style: "expanded"

And then when visiting http://127.0.0.1:4567/__middleman/config I see the :output_style has changed from the config's point of view.. but no change in the actual output in the css.

When I comment out sprockets, the expected behavior is good.. but then out goes the coffee2js compilation so... any way to ensure compass/sass settings in config are picked up and so sprockets does what I'd expect?

Steps to reproduce the problem (from a clean middleman installation) or example repo

Gemfile:

ruby '2.3.1'

# Middleman Gems
gem 'middleman', '>= 4.1.8'
gem "middleman-sprockets", github: 'middleman/middleman-sprockets'
gem 'middleman-livereload'
gem 'middleman-compass', '>= 4.0.1'

# See: https://github.com/Compass/compass/pull/2088
# --
# The following github branch should be replaced when Compass catches up and merges
# the new interpolation near operator syntax fixes and middleman-compass is updated.
git 'https://github.com/ably-forks/compass', branch: 'sass-deprecation-warning-fix' do
  gem 'compass-core'
end

gem 'middleman-gh-pages'
gem 'susy', '~> 2.2.11'
gem 'breakpoint', '~> 2.5.0'
gem 'middleman-syntax', '~> 2.1.0'
gem 'middleman-jquery'
gem "faker", "~> 1.6.3"
gem 'rack-contrib'
gem 'puma'

Additional information

  • Ruby version: 2.3.1
  • Middleman version: 4.1.8
  • Middleman Sprockets version: latest master as of today 11/30/2016
  • OS version: Mac OS 10.11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions