Answer the question
In order to leave comments, you need to log in
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'));
});
preferred_syntax = :sass
http_path = "/"
css_dir = 'stylesheets'
sass_dir = 'scss'
relative_assets = true
line_comments = true
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question