@scandipwa/chunk-optimizer
v1.0.4
Published
Webpack chunk optimizer extension used by CSA.
Downloads
2,774
Keywords
Readme
@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]
- By using one of following name formats you can disable SplitChunksPlugin configuration:
- Dynamic import:
import(/* webpackChunkName: "[chunk-name]" */ '[path]');
- Changing configuration.