T
T
teremok10002016-05-05 21:19:39
gulp.js
teremok1000, 2016-05-05 21:19:39

How to import compass mixins on gulp-sass?

compass is installed on the command line, everything you need is installed (I'm talking about libraries)
the gulp-sass plugin does not want to import compass
Writes from such errors: File to import not found or unreadable: compass/css3
In these different mixin files, adding sprites to them other
--------
Dmitrijs Balcers "compass/css3";
Dmitrijs Balcers "mixins";
Dmitrijs Balcers "animations";
Dmitrijs Balcers "keyframes";
Dmitrijs Balcers "media";
Dmitrijs Balcers "ceaser-easing/ceaser";
Dmitrijs Balcers "sprites";
------------
How to make everything work? Or can't they be imported?
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Shabalin, 2016-05-06
@nikolayshabalin

Your sass doesn't know the path to compass.
To do this, in the task, you need to tell him the location

.pipe(sass({
  includePaths: [
    'node_modules/compass-mixins/lib/' // здесь ваш путь
 ]
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question