Miidleman 4 + sprockets + sassc compile sass files

Hello,

I’m getting really desperate, because i’t trying to compile sass file with sassc (libSass) with no luck. I have installed clean middleman with init command:

 middleman init project_name

then i added gems to Gemfile, so i looked like this:

source 'https://rubygems.org'

gem 'middleman', '~> 4.2'
gem 'middleman-autoprefixer', '~> 2.7'
gem 'middleman-syntax', '~> 3.0.0'

gem "middleman-sprockets", "~> 4.1.0"
gem 'sprockets', github: 'rails/sprockets'
gem "sassc"

Then i have ran:

bundle install

after that, i have added activate :sprockets to config.rb

Everything works like charm, until i change site.css.scss to site.css.sass , because i hate using curly brackets and semicolon in stylesheets, if i don’t have to.

It can’t handle sass file (syntax) for no reason :frowning:

I spent a lot of time googling the problem, but i can’t find solution.

Thank for any advice or help.

I believe middleman sprockets isn’t working with sassc properly yet. If you change gem sassc to gem sass it should work.

Yeah it does, but it will be deprecated soon (https://sass-lang.com/ruby-sass). I use it in my projects, but fo the future i don’t want use unmaintained release.

I’m well aware, just saying that’s the way to fix the issue while waiting for a solution. More info (and workarounds) here: https://github.com/middleman/middleman-sprockets/issues/119