O
O
Oleg2014-02-02 23:09:15
Sass
Oleg, 2014-02-02 23:09:15

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

1 answer(s)
G
gillbeits, 2014-08-08
@gillbeits

You brought the task itself, but how did you do gulp.watch? + bring config.rb and folder structure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question