middleman / middleman-sprockets

Sprockets support for Middleman
http://middlemanapp.com
MIT License
62 stars 53 forks source link

Use Sassc #119

Open george-norris-salesforce opened 8 years ago

george-norris-salesforce commented 8 years ago

how do I force middleman-sprockets to use Sassc?

Currrently...

gem 'sprockets', '~> 3.6.3'
gem 'sassc'
gem 'sassc-rails'
== The Middleman is loading
== Preferring use of LibSass
== Sprockets will render css with ruby sass
stevenosloan commented 8 years ago

You'll need one of the Sprockets 4.0 betas -- but working off of master might be preferable (there's been a lot of work since the last beta was released)

gem 'sprockets', github: 'rails/sprockets'

It should pick up SassC then (you'll see that entry in startup change to == Sprockets will render css with SassC).

I'm curious, was the next line on startup not consider using Sprockets 4.x to render with SassC? I might have written in a bug so that doesn't get displayed.

vvasabi commented 8 years ago

I created this gem several months ago, but it has been sitting in my company’s private gem repo. Seeing that someone is asking about this, I have pushed it to rubygems.org. Source code is available here. Note that this is only a temporary solution before Sprockets 4.x can be released.

Hope this helps.

kurko commented 5 years ago

@vvasabi works. Sprockets from master doesn't.

tdreyno commented 5 years ago

We're tracking this upstream PR here: https://github.com/rtomayko/tilt/pull/336