Socket
Socket
Sign inDemoInstall

bundle-webpack-plugin

Package Overview
Dependencies
77
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bundle-webpack-plugin

Creates an additional application bundle for the selected execution environment (target).


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
7.75 kB
Created
Weekly downloads
 

Readme

Source

Bundle Webpack Plugin · npm package npm package Discord

This 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
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",
    }),
  ],
};
  • Node.js API Starter - Monorepo project template based on Yarn v2, GraphQL.js, React, and Relay.

Copyright © 2021-present Kriasoft. This source code is licensed under the MIT license found in the LICENSE file.


Made with ♥  by Konstantin Tarkus (@koistya, blog) and contributors.

Keywords

FAQs

Last updated on 17 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc