Skip to content

Add support for factor-bundle plugin #18

Closed
@gsantiago

Description

@gsantiago

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions