-
-
Notifications
You must be signed in to change notification settings - Fork 238
How to make a-la webpack "multiple entries" scenario? #52
Comments
You can bundle anything without an entry point |
Thanks for quick reply :) I guess there is a lack in documentation. The config above defines that I after executing I want to have three output bundles:
Where "main" and "admin" - are separate entry points. There's still not clear how to achieve this scenario from provided docs. It could be fine to see some example how to do it. |
Hi! I am on my phone now, but you can try using FuseBox.import() your entire bundle is available via that API |
You can bundle everything using ./.** and then use Or you can have 2 bundles (they will share the scope) FuseBox provides much more flexible API than webpack :) read up :) |
I'm experimenting with all it now, but without much success yet. |
Use globbing to make sure it's all there, then try window.FuseBox.import |
Try where? In build script or at the client side entry point file? |
Again: I need two files as output, not single one. |
You can access any file in a bundle (after it has been bundled) via FuseBox.import |
As for now, I cann't see other way than simple calling FuseBox twice:
|
If you need 2 files use 2 instances (you can share your config) |
That's what I guessed from beginning :( I end up with this:
Problems:
I guess FuseBox should support such scenario, that is provided by webpack out-of-the-box. |
Turning caching on greatly improved re-building times:
But how now to make 3rd-party separate "vendor" file? |
Finally got it working with the following:
And with following HTML:
But it seems like boilerplate ((( I could try to hack on this, but it seems FuseBox plugins has no API to create/specify additional output files :( |
yes, currently there is only one source, but we can and will improve it :) |
Thanks. Will follow it. It seems promising. |
Implemented in 1.4.1 |
Does fuse-box support multiple entries scenario?
Like this in webpack:
The text was updated successfully, but these errors were encountered: