Webpack Plugin to bundle extra sources to your app.
ps. Support Webpack >= 5.0.0
yarn add --dev bundle-more-webpack-plugin
const { BundleMoreWebpackPlugin } = require('bundle-more-webpack-plugin')
module.exports = {
...
plugins: [
...,
new BundleMoreWebpackPlugin(
['file-path-to-bundle']
)
]
}
custom entry name
const { BundleMoreWebpackPlugin } = require('bundle-more-webpack-plugin')
module.exports = {
...
plugins: [
...,
new BundleMoreWebpackPlugin(
['file-path-to-bundle']
, 'main' // default 'client'
)
]
}