I am having some issues with my gulpfile configuration when I edit main.scss, gulp watch is running in the terminal but it does not detect the changes made in main.scss, but when I run gulp.sass, it detects the changes, I have looked through some of the other "gulp watch issues" and I still can't find a fix, what am I doing wrong? Let me know if it needs to be more clear
Folder directory -
weather-app
---node_modules
---public
---css
---main.css
---js
---main.js
---index.html
---src
---sass
---main.scss
---mobile.scss
---js
---main.js
---gulpfile.js
---package-lock.json
---package.json
const gulp = require('gulp'),
sass = require('gulp-sass'),
uglifyCss = require('gulp-uglifycss'),
concatCss = require('gulp-concat-css');
gulp.task('sass', () => {
gulp.src('src/sass/*.scss')
.pipe(sass())
.pipe(uglifyCss({
'uglyComments': true
}))
.pipe(concatCss('main.css'))
.pipe(gulp.dest('public/css'))
})
gulp.task('default', ['sass']);
gulp.task('watch', () => {
gulp.watch('src/sass/*.scss', ['watch'])
})