lasso-js / lasso

Advanced JavaScript module bundler, asset pipeline and optimizer
582 stars 75 forks source link

Feature Request: Flag to disable bundling for all files not in the "bundles" array #187

Open Hesulan opened 7 years ago

Hesulan commented 7 years ago

The "bundles" option allows users to specify lists of files to be split into separate bundles, while every other dependency is added to the catch-all page bundle.

It's also possible to disable bundling with "bundlingEnabled": false, which overrides the "bundles" option and writes all dependencies to separate files.

It would be useful to have an option ("bundleAll"?) which would still generate bundles listed in the "bundles" array, but all other dependencies would be written to separate files like with "bundlingEnabled": false.