fallback-webpack-plugin
v1.4.0
Published
Plugin that simplifies module replacement with a fallback.
Downloads
4
Maintainers
Readme
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"
),
],
};