Answer the question
In order to leave comments, you need to log in
Why is the image constantly being created/deleted when using gulp-compass?
Good day .. the task is to run gulp-compass.
In the sublimetext3 file manager, you can constantly see how the sprite file is created and then deleted. And as a result, the file size is 0. When I run it using the Compass( compass watch) itself, everything works ..
Configuration:
Mixin sprite:
$icons: sprite-map("icons/*.png", $spacing: 10px);
@mixin sized-sprite($map, $sprite){
background: sprite($map, $sprite) no-repeat;
@include image-size(sprite-file($map, $sprite));
}
And its call: @include sized-sprite($icons, 'link-arr3');
Gulpfile.js config:
gulp.task('compass',function(event){
gulp.src('assets/sass/*.scss')
.pipe(compass({
project: path.join(__dirname,'assets'),
image: 'img',
config_file:'config.rb'
}))
.pipe(gulp.dest('build/css'));
});
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