Combine multiple assets into a single asset
npm install webpack-combine-plugin module.exports = {
entry: { ... },
...
plugins: [
new webpackCombinePlugin({
file: 'editor/client.js',
assets: [
'common.js',
'editor/client.js'
]
})
]
}