04.
Watch for Changes
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
4 Comments
If you're working with Gulp 4 it would work
gulp.task('default', gulp.series('sass', function() {
// default task code here
}));
or just without default function
gulp.task('default', gulp.series('sass'));
Hey Алина Туранова
Thanks for sharing it with others :)
So when I open my editor and start to code I have first to launch the terminal and run the sass task ?
Is there a way to have this done automatically in PHPStorm ?
Also it's quite anoying to have a terminal window open and stuck running sass. I know I could do > sass & to run it in background but I'm sure there is something better. isn't it ?
Hi there!
I haven't used it before, but there is some integration with Gulp and PhpStorm that you might find interesting! https://www.jetbrains.com/h...
And yes, you could of course run it with &, but obviously it's really the same. With some technologies - I'm not sure about gulp, but webpack has this - they are starting to allow you to run "development" web servers - where your CSS/JS calls actually proxy through a web server and are returned dynamically. This removes the need for a "watch" process. But, these watch processes are still pretty common overall.
Cheers!
"Houston: no signs of life"
Start the conversation!