0.1.1 β€’ Published 7 years ago

webpack-split-plugin v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

πŸ€ΈπŸ”Œ webpack-split-plugin

split bundle into multiple pieces with custom specifications (currently hard coded as 1/2 the size)

extension of CommonsChunkPlugin

πŸ“¦ install

yarn add webpack-split-plugin --dev
npm i webpack-split-plugin --save-dev
const WebpackSplitPlugin = require('webpack-split-plugin')

πŸ“˜ example

plugins: [
  new WebpackSplitPlugin({
    // * required
    name: 'eh',
    filename: '[name]-split.js',

    // [optional], very verbose output
    debug: true,

    // [optional], automatically figures it out after first run
    totalSize: '1937kb', // 1.937mb
  }),
],

πŸ”— resources

πŸ”¬ tests

🚧 work-in-progress

more coming soon with stability & customizability.