Answer the question
In order to leave comments, you need to log in
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)
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question