This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ModuleReplacement = require('path/to/module-replacement-resolver'); | |
module.exports = { | |
entry: ''/* @code */, | |
output: { /* @code */ }, | |
// Set all replacements | |
plugins: [...ModuleReplacement()] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function () { | |
// The modules which can be toggled. | |
// Eg. This config can be exported from db. For now its static. | |
const modules = { Module1: true, Module2: true }; | |
const replacements = []; | |
for (const moduleName in modules) { | |
if (modules.hasOwnProperty(moduleName)) { | |
(function (name) { | |
replacements.push(new webpack.NormalModuleReplacementPlugin( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function () { | |
// The modules which can be toggled. | |
// Eg. This config can be exported from db. For now its static. | |
const modules = { Module1: true, Module2: true }; | |
const replacements = []; | |
for (const moduleName in modules) { | |
if (modules.hasOwnProperty(moduleName)) { | |
// ... | |
} |