Problem loading CSS file Sass

Asked

Viewed 166 times

0

I am facing a problem where when generating the CSS file, where this is generated by a task done through Gulp. When interpreting Sass and generating CSS, the file on the site only changes if I delete and create a new file. css, otherwise it remains the same without the changes I made.

In CSS files, created by hand, changes are made.

Something like a cache, but only for those made from Sass.

I already changed the file name and I continue with this "cache".

I appreciate the help.

follows my gulpfile file

`'use strict';

var gulp = require('gulp');
var sass = require('gulp-sass');

var sassOptions = {
errLogToConsole: true,
outputStyle: 'expanded'
};

gulp.task('sass', function() {
return gulp.src('./assets/sass/**/*.scss')
.pipe(sass(sassOptions).on('error', sass.logError))
.pipe(gulp.dest('./css/'));
});

//Watch task
gulp.task('default',function() {
gulp.watch('assets/sass/**/*.scss',['sass']);
});`
  • When you spin $ gulp sass, out of task watch, what happens?

  • @Caiofelipepereira Same happens, does not update css file in browser.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.