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