{"library":"path-override-webpack-plugin","title":"Path Override Webpack Plugin","description":"A Webpack plugin that allows overriding module import paths with an external set of matching files. Use it to replace modules dynamically based on a regex pattern, useful for theming or skinning complex applications. Current stable version is 0.1.2, released infrequently with minimal updates. Key differentiator: unlike Webpack's native alias which requires exact paths, this plugin conditionally overrides based on file existence, falling back to the original if no override file is found. Compatible with Webpack 4.x. Not recommended for new projects; consider using Webpack's resolve.alias or resolve.plugins instead.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install path-override-webpack-plugin"],"cli":null},"imports":["import PathOverridePlugin from 'path-override-webpack-plugin'","const PathOverridePlugin = require('path-override-webpack-plugin')","const PathOverridePlugin = require('path-override-webpack-plugin').default"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const PathOverridePlugin = require('path-override-webpack-plugin');\n\nmodule.exports = {\n  mode: 'production',\n  entry: './src/index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'bundle.js'\n  },\n  plugins: [\n    new PathOverridePlugin(\n      /^app\\/view/,\n      './node_modules/SomeExternalSkin/src'\n    )\n  ]\n};","lang":"javascript","description":"Create a webpack configuration that overrides module paths matching 'app/view' with files from an external package.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}