dennispg / gulp-sass-newer

A Gulp plugin to only pass through newer sass source files and imports.
1 stars 0 forks source link

Error "Could not load file" #1

Open Ferym26 opened 7 years ago

Ferym26 commented 7 years ago

i have a simple task

gulp.task('styles', function () {
    return gulp.src(['frontend/sass/*.{scss,sass}', 'core/sass/**/*.{scss,sass}'])
        .pipe(newer_sass({ dest: 'app/css' }))
        .pipe(sass({
            includePaths: require('node-bourbon').includePaths,
            outputStyle: 'expanded',
            errLogToConsole: true,
        }))
        .on('error', notify.onError({
            title: 'SASS error'
        }))     
        .pipe(autoprefixer({
            browsers: ['last 15 versions'],
            cascade: false
        }))
        .pipe(gulp.dest('app/css'))
        .pipe(browserSync.stream());
});

but when i run gulp i get "Could not load file: %all_my_sass_files" http://joxi.ru/L21W0PasPv7KrX

dennispg commented 7 years ago

do you get this issue when newer_sass is not included in the pipeline?

dennispg commented 7 years ago

I wonder if your usage of the includePaths options is what is causing the "Could not load file" messages.. I did not implement that option in newer_sass to be able resolve @import's..

If you confirm that the rest of your pipeline works and only breaks when using newer_sass, that means I would need to implement the includePaths option. Let me see what I can do..

If there is any other means that you can use to get your bourbon imports working without using includePaths then I would suggest that as a workaround in the meantime.