Skip to content

Latest commit

 

History

History

multi-entry

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Multi Entry Plugin

Support for multiple entries instead of one

Install

npm install -D @rambler-tech/razzle-multi-entry

or

yarn add -D @rambler-tech/razzle-multi-entry

Usage

Add the plugin to razzle.config.js

const path = require('path')
const MultiEntryPlugin = require('@rambler-tech/razzle-multi-entry')

module.exports = {
  plugins: [
    MultiEntryPlugin({
      mobile: path.resolve(__dirname, 'src/mobile/client'),
      desktop: path.resolve(__dirname, 'src/desktop/client')
    })
  ],
  modifyWebpackConfig({webpackConfig}) {
    // ...
    return webpackConfig
  }
}