S
S
Sergey Beloventsev2018-07-09 14:21:02
Yii
Sergey Beloventsev, 2018-07-09 14:21:02

How to properly compress resources in Yii2?

Actually I'm trying to organize resource compression in yii2 using this link , but such an error occurs.


Loading configuration from 'assets.php'...
Collecting source bundles information...
Creating output bundle 'all':
Compressing JavaScript files...
/var/www/tiger.lc/frontend/public_html/assets/js/all- temp.js.tmp:12386: ERROR - Parse error. Semi-colon expected

but in the Internet I found that now resources are being compressed using webpack on the Internet, I did not find documentation, can you tell me where you can find docks for such compression?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-07-09
@Sergalas

Judging by the error, you are missing a semicolon in some file. So here the question is not about the compression method, but about the quality of the compressed code.

A
Andrey, 2018-07-09
@VladimirAndreev

Update nodejs to 8+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question