Home > @lynx-js/rspeedy > ChunkSplitCustom > strategy

ChunkSplitCustom.strategy property

The ChunkSplitting strategy.

Signature:

strategy: 'custom';

Remarks

  • split-by-experience(default): an empirical splitting strategy, automatically splits some commonly used npm packages into chunks of moderate size.

  • split-by-module: split by NPM package granularity, each NPM package corresponds to a chunk.

  • split-by-size: automatically split according to module size.

  • all-in-one: bundle all codes into one chunk.

  • single-vendor: bundle all NPM packages into a single chunk.

  • custom: custom chunk splitting strategy.

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.