Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.3 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.3 KB

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