A
A
Alexey2019-11-25 15:53:42
css
Alexey, 2019-11-25 15:53:42

How to add lines to Gulp files?

I have a folder with my favorite libraries/plugins.
In the sources of any of my projects, there is a libs folder designed to store all the libraries/plugins connected to the project - when building, it is transferred to dist.
I would like to automate such a task - when adding a file / folder with files / folder with folders and files in the head.pug or / and scripts.pug files (depending on what needs to be connected), lines were added connecting these libraries
. The folder structure of the libraries is *name libraries* / (css, js, img, etc) / (*library name*.min.css, *library name*.min.js, etc)
5ddbce2b0db1d418510387.jpeg
But, unfortunately, I have no idea how to implement similar. Tell me in which direction to think, what extensions for the gallp to use?
I use npm, but I don’t want to connect directly from node-modules, since each time I need to add / remove tasks in the gulpfile to connect / disconnect libraries

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Chefranov, 2018-12-03
@Zempik

Hastily sketched, correct for yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question