middleman-sprockets icon indicating copy to clipboard operation
middleman-sprockets copied to clipboard

Use Sassc

Open george-norris-salesforce opened this issue 9 years ago • 4 comments

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

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.

stevenosloan avatar Jul 11 '16 14:07 stevenosloan

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.

vvasabi avatar Aug 26 '16 15:08 vvasabi

@vvasabi works. Sprockets from master doesn't.

kurko avatar Nov 24 '18 01:11 kurko

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

tdreyno avatar Nov 24 '18 02:11 tdreyno