T
T
tory_kuzya2017-07-24 15:33:23
Command line
tory_kuzya, 2017-07-24 15:33:23

Gulp command line not working after executing gulp command?

Installed Gulp, created a training project, set up gulpfile.js and package.json, when I run the gulp command on the command line, I get the following:
2d91534b596d4c23b4d3de8241715a04.png
The cursor is standing, blinking, but it does not give commands. What am I doing? I close and reopen the command prompt. And so every time... What's wrong? Here is the project structure.
3d995ade6606439492f5d567c0ccf6d4.png
It seems that all the tasks worked out, but the existing images in the app / img folder were not transferred to the final dist / img folder ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
wbrapist, 2017-07-24
@tory_kuzya

"Gulp for the little ones"?
The task that you perform is needed for development. In order to throw source files into dist you need another task, which you have defined in gulpfile.
In the console, enter:
gulp build
Ps Images are not transferred, just because not all tasks worked out. You only defined the img task (what should happen and how), but did not complete it.
When you call build, the img-task you need is executed.

S
Sergiu Mitu, 2017-07-24
@EaGames

You have the watch server running, this is normal behavior, as it should be. We launched watch and forgot, all tasks should be performed by him and not by you manually, that's what he was conceived for.

M
Maxim Shchirba, 2020-07-03
@caest

You need to stop gulp in terminal/console , ctrl + c , edit the code and then run it again

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question