You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome if simplifyify could support the factor bundle plugin. This saves a lot of bytes when We have to include multiple bundles in a same page.
Let's say I have two entry-points: x.js and y.js with both sharing modules in common.
We could run the following command to create the bundles:
simplifyify source/*.js -o dist/*.bundle.js
This will create two bundles: x.bundle.js and y.bundle.js. But both will have the same modules in common in each bundles. This is not good if We need to include both bundles in a same page.
So, we could add the factor-bundle option to resolve this problem:
It would be awesome if simplifyify could support the factor bundle plugin. This saves a lot of bytes when We have to include multiple bundles in a same page.
Let's say I have two entry-points:
x.js
andy.js
with both sharing modules in common.We could run the following command to create the bundles:
simplifyify source/*.js -o dist/*.bundle.js
This will create two bundles:
x.bundle.js
andy.bundle.js
. But both will have the same modules in common in each bundles. This is not good if We need to include both bundles in a same page.So, we could add the factor-bundle option to resolve this problem:
simplifyify source/*.js -o dist/*.bundle.js --factor-bundle dist/common.bundle.js
This option would extract the common modules between the bundles into the
common.bundle.js
file.The text was updated successfully, but these errors were encountered: