E
E
Evgeii2019-06-18 19:44:31
JavaScript
Evgeii, 2019-06-18 19:44:31

How to collect all files in one js?

Tell me, how can I collect through gulp all js files in all blocks into one file in the order I need in their sequence? What would then at the end of only 1 file connect.
I tried using gulp-concat , but if I have a lot of files (30 pieces) and there I need to enter them in order like --return gulp.src(['./lib/file3.js', './lib/ file1.js', './lib/file2.js'])-- and so on. which is very long and cumbersome. Can this be done any easier?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2019-06-18
@Evgeii

I used this plugin for a long time . File inclusion through some main.js file. Code for include//= путь к файлу можно относительный

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question