This package includes Webpack chunk optimizer extension used by Create Scandipwa App.
Package is currently under development. Docs too. Try at your own risk!
Currently, all style elements are distributed between following chunks:
- main
- vendor
- product
- category
- cart
- checkout
- wishlist
- account
- misc
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]
- By using one of following name formats you can disable SplitChunksPlugin configuration:
- Dynamic import:
import(/* webpackChunkName: "[chunk-name]" */ '[path]');
- Changing configuration.