Skip to content

Latest commit

 

History

History

chunks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Chunks Plugin

Support for split chunks

Install

npm install -D @rambler-tech/razzle-chunks

or

yarn add -D @rambler-tech/razzle-chunks

Usage

Add the plugin to razzle.config.js

const path = require('path')
const ChunksPlugin = require('@rambler-tech/razzle-chunks')

module.exports = {
  plugins: [
    ChunksPlugin({
      vendors: /[\\/]node_modules[\\/]*[\\/]/
    })
  ],
  modifyWebpackConfig({webpackConfig}) {
    // ...
    return webpackConfig
  }
}