Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Gulp
  3. gulp-compass

gulp-compass

MITJavaScript2.1.0

A Gulp plugin that compiles Sass to CSS using the Compass framework.

GitHubGitHub
171 stars54 forks0 contributors

What is gulp-compass?

gulp-compass is a Gulp plugin that compiles Sass/SCSS files to CSS using the Compass framework. It integrates Compass's capabilities—like sprite generation, vendor prefixing, and advanced mixins—into Gulp-based build pipelines, automating stylesheet preprocessing for frontend projects.

Target Audience

Frontend developers and build engineers using Gulp who want to incorporate Compass's Sass features into their workflow without leaving the Node.js ecosystem.

Value Proposition

It provides a seamless bridge between Gulp and Compass, offering configuration flexibility, plugin support, and error handling while maintaining the performance benefits of Gulp's streaming architecture.

Overview

Compass plugin for gulp

Use Cases

Best For

  • Integrating Compass mixins and functions into Gulp builds
  • Automating Sass compilation with advanced Compass features
  • Generating CSS sprites within a Gulp task pipeline
  • Using Susy or modular-scale grids in a Gulp project
  • Adding source map support to Compass-compiled stylesheets
  • Combining Ruby-based Sass tooling with Node.js build systems

Not Ideal For

  • Projects aiming to eliminate Ruby dependencies for a pure Node.js build stack
  • Teams using modern Sass compilers like Dart Sass that offer faster performance and newer features
  • Environments where quick setup is critical, as installing Ruby and Compass adds extra steps
  • Developers who prefer PostCSS or other CSS toolchains over the Compass ecosystem

Pros & Cons

Pros

Comprehensive Compass Integration

Provides access to all Compass features, including mixins, sprite generation, and advanced functions, by leveraging the Ruby gem as stated in the README.

Dual Configuration Support

Can be configured via a standard config.rb file or directly through JavaScript options, offering flexibility as demonstrated in the usage examples.

Plugin Ecosystem Access

Supports requiring external Compass plugins like Susy and modular-scale via the 'require' option, enabling extended functionality without leaving Gulp.

Built-in Error Handling

Compatible with Gulp error plugins like gulp-plumber, allowing for robust build processes with proper error catching, as shown in the README snippets.

Cons

Ruby Dependency Burden

Requires separate installation of Ruby and the Compass gem, which complicates setup and can cause cross-platform issues, a noted requirement in the README.

Potential Performance Lag

Execution through Ruby may result in slower compilation times compared to native Node.js Sass compilers, impacting build efficiency in speed-critical projects.

Configuration Pitfalls

The README warns about ensuring css and sass paths match, and managing multiple options can lead to errors during setup, adding complexity.

Frequently Asked Questions

Quick Stats

Stars171
Forks54
Contributors0
Open Issues38
Last commit9 years ago
CreatedSince 2013

Tags

#sass#ruby-gem#compass#compass-plugin#frontend#javascript#automation#css#css-preprocessor#build-tool#gulp-plugin

Built With

R
Ruby
N
Node.js

Included in

Gulp624
Auto-fetched 1 day ago

Related Projects

gulp-sassgulp-sass

SASS plugin for gulp

Stars1,550
Forks371
Last commit1 year ago
webpack-streamwebpack-stream

:tropical_drink: Run webpack through a stream interface

Stars1,384
Forks116
Last commit5 years ago
gulp-typescriptgulp-typescript

A TypeScript compiler for gulp with incremental compilation support.

Stars851
Forks125
Last commit3 years ago
gulp-postcssgulp-postcss

Pipe CSS through PostCSS processors with a single parse

Stars763
Forks61
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub