Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,6 @@ gulp.task('run', ['clean', 'serve'], function() {
gulp.watch(config.folderDev.js + '/*.js').on('change', browserSync.reload);
});

// Watch for changes
gulp.task('watch', ['build'], function() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this removal is correct as it was practically duplicated. I'd love to have some 'watch only' feature without the 'serve'. Since there were times I needed to add PHP to the project and work through Apache (opening the project in the browser as http://localhost), the 'serve' in my case was useless, yet the watch is a great thing to have, so you can see the changes by manually refreshing.
Nice change, maybe at some point we can rearrange the tasks having 'run' for build, watch and serve and another task 'watch' as build and watch only (maybe 'run' may call 'watch' and 'serve').

gulp.watch(config.folderAssets.base + '/**/*.scss', ['sass']);
});

// Define task to deploy to SFTP server
gulp.task('deploy', ['build'], function() {
return gulp.src([config.folderDev.base + '/**/*.*', '!./dev/js/vendor/**'])
Expand Down
Loading