D
D
DeniSidorenko2018-01-30 17:42:10
JavaScript
DeniSidorenko, 2018-01-30 17:42:10

Are there any services to compress all js into one?

Good afternoon, I remember in gulp'e it was possible to configure that if you use jquery + lib1 + lib2 + app.js in the project, you get one file at the end. Are there such online services in order to compress all files into one)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Tsvetkov, 2018-01-30
@yellow79

You take gulp-rigger, put the paths of all library files into one, then feed it to gulp-rigger and enjoy life, you can additionally run it through gulp-uglify

A
Alexander Kositsyn, 2018-01-30
@alex_keysi

There is webpack for gulp. Look at gulp-webpack-stream it seems to be called. Webpack is specifically designed for what you describe. One task is simply written there and everything is ok.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question