Replies: 6 comments 28 replies
-
How would you handle |
Beta Was this translation helpful? Give feedback.
-
But this is a composer one line. So it is not a big thing to do. Or do I miss something? |
Beta Was this translation helpful? Give feedback.
-
Very simple: https://github.com/yiisoft/yii-bootstrap5?tab=readme-ov-file#install-assets |
Beta Was this translation helpful? Give feedback.
-
This a far more extreme suggestion than what I had in mind with #20162 Anyway, I think the pain-points should be resolved, rather than create new breaking changes just to be on par with what's new on FE world today. For example, the bundling and minifier with java and external shell commands is way outdated, we should use something more established in the industry by now like parcel (with lighningcss). Should not be so complicated for anybody that can do composer install to also run a few npm commands and run parcel itself. We should only make sure we have a valid I really love PHP, but I think we went too far with the whole asset management in Yii to avoid some simple, established ways to install JS packages. Today, many tools can install those deps besides npm, one can even use bun or deno for example. |
Beta Was this translation helpful? Give feedback.
-
How "others" are doing it, using modern FE tooling: https://laravel.com/docs/11.x/vite |
Beta Was this translation helpful? Give feedback.
-
From my view, that should definitely take place in 2.2 since the current ecosystem is no longer reliable and maintained. |
Beta Was this translation helpful? Give feedback.
-
As part of Yii 2.2, it is good to remove assets from the core and make it a separate package.
This discussion is to get ideas on what is the best way to execute this task.
Feel free to share whatever you think will be the best approach.
Beta Was this translation helpful? Give feedback.
All reactions