Answer the question
In order to leave comments, you need to log in
Gulp and multiple sites?
Hello!
I use galp for the first time, tell me please, here I have several sites on vds, ubuntu 16
-site1
--css
--js
--img
--index.php
-site2
--css
--js
--img
--index.php
-site3
--css
--js
--img
--index.php
Answer the question
In order to leave comments, you need to log in
Usually all the same, its own gulpfile for each site is quite convenient, went to the directory, entered gulp and everything is fine. But nothing prevents you from making distinctions in one file.
The first thing that comes to mind is to make for each site its own "big" task, in which to call the rest of the necessary tasks. Cons: for each new site you will need a separate task. Pros: changes in the structure of one site (and its task) will not affect anything else
Yes, it would be logical to put in site ... But you can, for example, make a structure:
-project
--site1
--- .....
--gulpfile.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question