https://github.com/kriasoft/bundle-webpack-plugin
Webpack plugin for emitting additional application bundles for Node.js, SSR, Cloudflare Workers, etc.
https://github.com/kriasoft/bundle-webpack-plugin
bundle bundler cloudflare cloudflare-workers ssr webpack
Last synced: 6 months ago
JSON representation
Webpack plugin for emitting additional application bundles for Node.js, SSR, Cloudflare Workers, etc.
- Host: GitHub
- URL: https://github.com/kriasoft/bundle-webpack-plugin
- Owner: kriasoft
- License: mit
- Created: 2021-02-10T18:53:21.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T10:28:09.000Z (about 5 years ago)
- Last Synced: 2025-08-25T18:38:06.341Z (6 months ago)
- Topics: bundle, bundler, cloudflare, cloudflare-workers, ssr, webpack
- Language: JavaScript
- Homepage:
- Size: 575 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Bundle Webpack Plugin · [![npm package][npm-v]][npm] [![npm package][npm-dm]][npm] [![Discord][discord-badge]][discord]
This [Webpack][webpack] plugin creates an additional application bundle for the
selected execution environment (Webpack `target`). This is often used for
scenarios such as server-side rendering / pre-rendering (SSR).
## Usage Example
#### `webpack.config.js`
```js
const { BundleWebpackPlugin } = require("bundle-webpack-plugin");
module.exports = {
// The core application bundle for browsers.
name: "app",
entry: "./src/index",
target: "browserslist:defaults",
plugins: [
new BundleWebpackPlugin({
// Additional (reverse proxy) bundle for Cloudflare Workers.
name: "proxy",
entry: "./src/proxy",
target: "browserslist:last 2 Chrome versions",
}),
],
};
```
## Related Projects
- [Node.js API Starter](https://github.com/kriasoft/nodejs-api-starter) - Monorepo project template based on Yarn v2, GraphQL.js, React, and Relay.
## Copyright
Copyright © 2021-present Kriasoft. This source code is licensed under the MIT license found in the
[LICENSE](https://github.com/kriasoft/bundle-webpack-plugin/blob/main/LICENSE) file.
---
Made with ♥ by Konstantin Tarkus ([@koistya](https://twitter.com/koistya), [blog](https://medium.com/@koistya))
and [contributors](https://github.com/kriasoft/bundle-webpack-plugin/graphs/contributors).
[npm]: https://www.npmjs.org/package/bundle-webpack-plugin
[npm-v]: https://img.shields.io/npm/v/bundle-webpack-plugin?style=flat-square
[npm-dm]: https://img.shields.io/npm/dm/bundle-webpack-plugin?style=flat-square
[webpack]: https://webpack.js.org/
[discord]: https://discord.gg/bSsv7XM
[discord-badge]: https://img.shields.io/static/v1?logo=discord&label=&message=Join+us+on+Discord!&color=033&style=flat-square