V
V
Vitaly Solomin2015-09-14 12:09:29
Yii
Vitaly Solomin, 2015-09-14 12:09:29

Is it possible to transfer yii2 generated inline js to asset bundle?

There is a generated javascript that is inserted using registerJS
Is there any way to transfer it to a separate AssetBundle ?
to then combine all this with other js files and compress

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Makarov, 2015-09-14
@lhavi

You can rewrite it so that, for example, data- attributes are generated in HTML, and the script itself is static.

T
Talgat Baltasov, 2015-09-14
@talgatbaltasov

can

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question