L
L
leviathan2018-10-29 19:51:33
gulp.js
leviathan, 2018-10-29 19:51:33

Error File to import not found or unreadable: media?

As soon as I change the _media.sass file that is connected to the very end of main.sass , an error occurs

Error: File to import not found or unreadable: media. 
on line 5 of web/sass/main.sass
>> @import 'media';

Task example:
gulp.task('sass', function(){
  return gulp.src('web/sass/**/*.sass')
  .pipe(sass({ outputStyle: 'compressed' }))
  .pipe(rename({
    suffix: '.min',
  }))
  .pipe(autoprefixer({
    browsers: ['last 15 versions'],
    cascade: false
  }))
  .pipe(gulp.dest('web/css'))
  .pipe(browserSync.stream());
});

// -
gulp.task('watch', ['browserSync', 'sass', 'js'], function(){
  //gulp.watch('**/*.php').on('change', browserSync.reload);
  gulp.watch('web/sass/**/*.sass', ['sass']);
  //gulp.watch(['web/libs/**/*.js', 'web/js/common.js'], ['js']);
});

Before everything worked like clockwork.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question