I'm trying to get this part of my gulpfile.js
to work:
gulp.task('compileSass', function() {
return gulp.src(folders.src+'/scss/*scss')
.pipe(sass())
.pipe(gulp.dest(folders.dest+'/css'));
});
gulp.task('minifyStyles', ['compileSass'], function() {
return gulp.src(folders.dest+'/css/style.css')
.pipe(maps.init())
.pipe(minCss({
sourceMap: true
}))
.pipe(maps.write('./'))
.pipe(rename('style.min.css'))
.pipe(gulp.dest(folders.dest+'/css'));
});
I'd like dev tools to show the .scss
files. I'm not sure if it has to do with the rename()
or if I'm calling my sourcemaps at the wrong time, but when I check the dev tools, the source is always style.min.css
.