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); }
Hello, help please solve this problem. When running GULP, sass compiles normally, and mixin compass do not want to work. Writes: "Error: error scss / main.scss (Line 3: Undefined mixin 'text-shadow'.)".
main.scss
forgot. - D-side