Support for multiple entries instead of one
npm install -D @rambler-tech/razzle-multi-entry
or
yarn add -D @rambler-tech/razzle-multi-entry
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
}
}