@rambler-tech/razzle-multi-entry
v0.1.1
Published
Support for multiple entries instead of one
Downloads
5
Readme
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
}
}