Handle multiple builds
hdasdoria opened this issue · comments
Hi!
First of all, thanks for your work and for that very useful bundle!
With my team, we currently are trying to migrate all our Symfony bases apps from webpack encore to vite, but there is one final point that prevent us from migrating all of them. It's about handling multiple builds in separate build directories, with a manifest.json/entrypoints.json for each one.
Currently, symfony/webpack-encore-bundle provides a solution with this configuration:
webpack_encore:
# if you have multiple builds:
builds:
frontend: '%kernel.project_dir%/public/frontend/build'
Used with this twig:
{{ encore_entry_script_tags('app', null, 'frontend') }}
Are there any plans about adding this feature to your bundle, or have you ever thought about that?
Would also be interesting to know if you are looking to provide the "exact" same features as in symfony/webpack-encore or if you just aim to provide a way to use Vite in some SF apps.
hi @hdasdoria yes I plan to implement this feature. this will be my next contribution
That's good to hear, thanks!
hi @hdasdoria, I have terminated the multiple builds implementation in pr #39, if you want to test the feature and give me your feedback, you're welcome.
Configuration is a little bit heavier than with simple build, it's good to follow the doc for a first use https://github.com/lhapaipai/vite-bundle/tree/feature/multiple-builds#multiple-vite-configurations. I would like to simplify all this but I don't know how. do you have any suggestions?