0.0.3 • Published 4 years ago

custom-split-chunk-webpack-plugin v0.0.3

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

CustomSplitChunk Webpack Plugin

i:npm i:status

Get custom chunk by split selected module from selected chunk list.

Detailed concepts

Basic Usage

const { CustomSplitChunkWebpackPlugin } = require('custom-split-chunk-webpack-plugin')

const customOptionList = [
  { // first custom split option
    useExistChunk: false,
    chunkName: 'vendor-or-lib-or-else',
    filterChunk: ({
      chunk,
      chunkList,
      initialChunkNameList
    }) => true,
    filterModule: ({
      module,
      moduleChunkList,
      selectedChunkList,
      chunkList,
      initialChunkNameList
    }) => true
  },
  { useExistChunk, chunkName, filterChunk, filterModule } // second custom split option
]

const webpackConfig = {
  plugins: [
    // ...
    new CustomSplitChunkWebpackPlugin(customOptionList)
    // ...
  ]
}
0.0.4-dev.3

4 years ago

0.0.4-dev.2

5 years ago

0.0.4-dev.1

5 years ago

0.0.3

5 years ago

0.0.3-dev.0

5 years ago

0.0.2-dev.0

6 years ago

0.0.1

6 years ago

0.0.1-dev.0

6 years ago

0.0.0

6 years ago

0.0.0-dev.0

6 years ago