Compass taking too long to compile

前端 未结 2 1823
日久生厌
日久生厌 2021-01-14 13:42

Since updated to the latest version of Compass it now takes 4.294s to compile.

I need this version of compass due to needed susy

Running         


        
相关标签:
2条回答
  • 2021-01-14 13:58

    It's not a config problem, it's a known performance regression in the latest Sass & Compass.

    0 讨论(0)
  • 2021-01-14 14:21

    Having the same problem, pulling my hair out to find a solution but and finally found one; It is to downgrade.

    From 2mins+ of compiling to 25s.

    Here's How:

    1. You need to install these (if your using OSX):

      http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages

    2. Install Bundle

      gem install bundle

    3. Make a Gemfile in your root folder, name it "Gemfile"

    # frozen_string_literal: true
    source "https://rubygems.org"
    
    # gem "rails"
    gem 'sass', "3.2.9"
    gem 'sass-globbing', ">= 1.1.0"
    gem 'compass', "0.12.2"
    gem 'breakpoint',  "2.0.5"
    gem 'singularitygs', "< 2.0.0"
    gem 'bootstrap-sass'

    1. Install GemFile and update it

      bundle install && bundle update

    2. Then to run compass with bundle

      time bundle exec compass compile <path>

    I'm keeping my versions like these for a while, until they fix the performance issues. Hope it helps!

    0 讨论(0)
提交回复
热议问题