GithubHelp home page GithubHelp logo

isabella232 / bundle-webpack-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kriasoft/bundle-webpack-plugin

0.0 0.0 0.0 589 KB

Webpack plugin for emitting additional application bundles for Node.js, SSR, Cloudflare Workers, etc.

License: MIT License

JavaScript 100.00%

bundle-webpack-plugin's Introduction

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",
    }),
  ],
};

Related Projects

  • Node.js 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 file.


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

bundle-webpack-plugin's People

Contributors

koistya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.