V
V
Vladimir2017-02-27 11:31:41
Yii
Vladimir, 2017-02-27 11:31:41

How to reduce the number of files in Yii2 /web/assets?

Good day! I have a lot of folders with incomprehensible names in the /web/assets folder and they have a lot of files that I understand why, but it seems to me there are a lot of them. It seems to me that there is some kind of command that I don’t know that collects only everything you need from those folders. Just the number of files there 4k+. And I am more than sure that no more than 20 are needed there. Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bukharev, 2017-02-27
@MasterGerold

To config

'assetManager' => [
            'linkAssets' => true,
        ],

Instead of folders, there will be symbolic links to folders, that is, files will not be duplicated. Also see what you connect via AssetBundle, since they are responsible for the contents of the assets folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question