D
D
djienbaev972020-02-29 20:40:50
Yii
djienbaev97, 2020-02-29 20:40:50

How to remove unnecessary data from yii2 project?

Goodnight! I have such a situation, I made projects on yii2 and they weighed somewhere around 50-60 mb, but I recently added CK Editor from MihailDev to my project and everything even increases, it immediately began to weigh somewhere around 250 mb, why is this? because of CK Editor? Or where is the cache stored, I don’t understand, explain how to reduce memory?

I am using the advanced version

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-02-29
@djienbaev97

Every package has dependencies. Some packages have many dependencies or dependencies of large libraries. Therefore, the dimensions can change significantly. But for production, you can try to reduce these dependencies by removing unnecessary packages or files.
In order not to load packages for dev, use the command
composer —no-dev
To remove unnecessary files, use the command
composer —prefer-dist
The rest cannot be reduced, since everything else is important for the package to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question