taski

gulp.task('less', function(){ // Создаем таск "sass" return gulp.src('src/less/*.less') // Берем источник .pipe(less()) // Преобразуем less в CSS посредством gulp-less .pipe(autoprefixer(['last 15 versions', '> 1%', 'ie 8', 'ie 7'], { cascade: true })) // Создаем префиксы .pipe(gulp.dest('src/css')) // Выгружаем результата в папку src/css .pipe(browserSync.reload({stream: true})) // Обновляем CSS на странице при изменении }); 

in les file

 @import "../less/libs/bootstrap.css"; 

the output to the file libs.css appears the same

 @import "../less/libs/bootstrap.css"; 
  • There were no errors in the console when performing a task? - alexoander

1 answer 1

For normal import of css files into less, it is enough to specify a keyword (less), for example like this:

 @import (less) url("../css/libs/slick.css"); 

And it all worked;)