🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@mrbuilder/plugin-chunk

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mrbuilder/plugin-chunk

Configures chunking for webpack

latest
npmnpm
Version
4.4.7-alpha.9
Version published
Maintainers
3
Created
Source

This provides enhanced chunk support to mrbuilder.

PropertyTypeDefaultDescription
filenamestring[name].[hash].jsThe chunk filename
manifeststringmanifestThe 'manifest' chunk
excludesarrayOf stringmodules to exclude from chunks
crossOriginLoadingConfigure cross origin loading
cacheGroupsobjectdefault groupThe default chunkGroup
stylesstringstylesThe default chunk for css
splitChunksobject{}the default splitChunks config

The default splitChunks looks as follows

{
  "chunks": "all",
  "minSize": 0,
  "maxAsyncRequests": null,
  "maxInitialRequests": null,
  "name": true
}

The default cacheGroups looks as follows

 {
   "default": {
     "chunks": "async",
     "minSize": 30000,
     "minChunks": 2,
     "maxAsyncRequests": 5,
     "maxInitialRequests": 3,
     "priority": -20,
     "reuseExistingChunk": true
   }
 }

FAQs

Package last updated on 25 Oct 2021

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