Hi everyone!
I want to create on Yii2 app with simple template in pure HTML. How can I disable all JS because the site must not be needed JS to work.
Thanks for any response!
Regards,
Kużdo
Hi everyone!
I want to create on Yii2 app with simple template in pure HTML. How can I disable all JS because the site must not be needed JS to work.
Thanks for any response!
Regards,
Kużdo
Check out the guide - assets section
As I see it, you have several options.
Asset manager config:
You can disable assets altogether
AppAsset:
You can set only css to be published in publishOptions
And, I believe that you can simply set the $js to false.