fallback-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Fallback webpack plugin

Plugin that simplifies module replacement with a fallback.

Install

npm i --save-dev fallback-webpack-plugin
yarn add --dev fallback-webpack-plugin

Usage

const FallbackWebpackPlugin = require("fallback-webpack-plugin");

module.exports = {
  entry: "index.js",
  output: {
    path: __dirname + "/dist",
    filename: "index.bundle.js",
  },
  plugins: [
    new FallbackWebpackPlugin(
      "branchDirectory",
      "currentVariant",
      "fallbackDir"
    ),
  ],
};

Package Sidebar

Install

npm i fallback-webpack-plugin

Weekly Downloads

1

Version

1.4.0

License

MIT

Unpacked Size

7.34 kB

Total Files

11

Last publish

Collaborators

  • slashgear