C
C
Crash2019-12-02 14:17:44
minification
Crash, 2019-12-02 14:17:44

What is the easiest and fastest way to minify statics?

It so happened that I have been working on the Yii2 backend for a long time and the knowledge of development for the front remained 10 years ago.
I include CSS and JS scripts in the base template file one by one, without any preprocessing. CSS in the head tag, JS respectively before the closing body tag.
Because interfaces for various admins are becoming more and more complex, I thought about optimizing work with statics. I saw that this can be done using WebPack, but it seemed to me an overhead for a relatively simple task of minifying and merging statics.
Please tell me the best way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vldud, 2019-12-02
@vldud

gulp - a little simpler than WebPack, but in general also
https://github.com/matthiasmullie/minify - you can do without Node.js, by the way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question