Skip to content

wongnai/bundle-more-webpack-plugin

Repository files navigation

Bundle More Webpack Plugin

semantic-release JavaScript Style Guide ts code style: prettier License: MIT

Webpack Plugin to bundle extra sources to your app.

ps. Support Webpack >= 5.0.0

Installation

yarn add --dev bundle-more-webpack-plugin

Usage

In your webpack config

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'
        )
    ]
}