Answer the question
In order to leave comments, you need to log in
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';
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']);
});
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