Skip to content

Commit 9ee7b82

Browse files
committed
fix(sass): fixed watching for SASS changes
1 parent f57221f commit 9ee7b82

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

gulpfile.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,9 @@ gulp.task('watch', ['styles:sass', 'scripts:lint', 'scripts:cacheTpls', 'assets:
275275
});
276276

277277
// watch for SASS changes
278-
gulp.watch(config.paths.sass, function (event) {
278+
gulp.watch(config.paths.sass, ['styles:sass:imports'], function (event) {
279279
if (event.path.lastIndexOf('.scss') === event.path.length - 5) {
280-
var files = [
281-
config.app + '/sass/main.scss',
282-
config.app + '/+(app|common)/**/*.scss'
283-
];
280+
var files = config.build + '/assets/' + pkg.name + '-' + pkg.version + '.scss';
284281
return fnSass(files).pipe(plugins.livereload(server));
285282
}
286283
});

0 commit comments

Comments
 (0)