modify-assets-webpack-plugin
Plugin to modify build sources prior to bundling.
Install
yarn add -D modify-assets-webpack-plugin
Usage Example
const ModifyAssets = ; moduleexports = // ... webpack config ... plugins: test: /src\/.*\.js$/ // regex match on file path(s) dirname: process // some base path of matched files. // affects what is passed into test regex. { return source; }