You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@scandipwa/chunk-optimizer

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scandipwa/chunk-optimizer

Webpack chunk optimizer extension used by CSA.

1.0.4
latest
npm
Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

@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.

FAQs

Package last updated on 09 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts