Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

fallback-webpack-plugin

1.0.5 • Public • Published

Fallback webpack plugin Build Status

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

Install

npm i fallback-webpack-plugin

DownloadsWeekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

15 kB

Total Files

39

Last publish

Collaborators

  • avatar