Compass takes too long to compile
Since updated to the latest version of Compass, 4.294s compilation is now required.
I need this version of the compass out of necessity susy
Running "sass:dist" (sass) task
Running "watch" task
Completed in 4.294s at Tue Sep 30 2014 23:38:01 GMT+0200 (W. Europe Daylight Time) - Waiting...`
// Running versions
compass -v 1.0.1
susy -v 2.1.3
sass -v 3.4.4
I am compiling with grunt:
sass: {
dist: {
options: {
style: 'compressed',
require: 'susy',
compass: true
},
files: {
'<%= yeoman.css %>/style.css': '<%= yeoman.sass %>/style.scss'
}
}
}
How to speed up compilation time? Is there something wrong with my configuration?
source to share
This is not a configuration issue, this is a known performance regression in the latest Sass and Compass .
source to share
Having the same problem pulling my hair out to find a solution, but finally found it; It means to lower.
From 2mins + compilation to 25 seconds.
Here's How:
-
You need to install them (if you are using OSX):
http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages
-
Install package
gem install bundle
-
Create 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'
-
Install GemFile and update it
bundle install && bundle update
-
Then to start the compass with the package
time bundle exec compass compile <path>
I keep my versions like this for a while until they fix performance issues. Hope this helps!
source to share