@scandipwa/chunk-optimizer
This package includes Webpack chunk optimizer extension used by Create Scandipwa App.
Package is currently under development. Docs too.
Try at your own risk!
Chunks
Currently, all style elements are distributed between following chunks:
- main
- vendor
- product
- category
- cart
- checkout
- wishlist
- account
- misc
Expanding
To move file to specific chunk use one of three options:
- Name tagging:
- By using one of following name formats you can disable SplitChunksPlugin configuration:
[name].manual.style.[scss/css]
[name.manual.extended.style.[scss/css]
- Dynamic import:
import(/* webpackChunkName: "[chunk-name]" */ '[path]');
- Changing configuration.