Generic patch plugin
This plugin allows you to overwrite modules and assets from a source folder with files from a patch folder in a generic way.
Usage
To install it as a dependency in your project run:
npm install --save-dev webpack-generic-patch-plugin
Add the webpack-generic-patch-plugin
to the list of plugins in your webpack config.
Note: The order in which the plugins are listed does matter. If you run into issues, try to change their order.
// webpack.config.jsconst path = ; // Modules inside the patchPath will be// preferred over modules from the sourcePath// with the same relative path.const sourcePath = path;const patchPath = path; const GenericPatchPlugin = ; moduleexports = mode: 'development' entry: path output: path: path filename: '[name].js' plugins: sourcePath patchPath;
More information
Will follow in short time.