V
V
Vitellus Vitellus2016-02-11 12:10:10
Sass
Vitellus Vitellus, 2016-02-11 12:10:10

Why is compass not working in gulp?

Hello, please help me to solve this problem. When running GULP, sass compiles fine, but the compass mixin doesn't want to work. Writes: "Error: error scss/main.scss (Line 3: Undefined mixin 'text-shadow'.)" .
gulpfile.js

var gulp = require('gulp'),
    compass = require('gulp-compass');
 
gulp.task('compass', function() {
  gulp.src('scss/*.scss')
    .pipe(compass({
      config_file: 'config.rb',
      css: 'stylesheets',
      sass: 'scss'
    }))
    .pipe(gulp.dest('scss'));
});

config.rb
preferred_syntax = :sass
http_path = "/"
css_dir = 'stylesheets'
sass_dir = 'scss'
relative_assets = true
line_comments = true

main.scss
h1 {
  color: green;
  @include text-shadow(rgba(blue, 0.2) 1px 1px 0, rgba(blue, 0.2) 2px 2px 0, rgba(blue, 0.2) 3px 3px 0);

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergski, 2016-02-11
@vitellus

Gulp certainly has nothing to do with it. Did you include import "compass/css3"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question