{"library":"rename-webpack-plugin","title":"rename-webpack-plugin","description":"Webpack plugin for renaming output files, allowing partial filename overrides when using hash-based naming (e.g., [chunkhash]). Version 2.0.0 adds webpack 4 support. Primarily useful for customizing chunk or asset names that webpack's built-in naming can't handle. Lightweight, no extra dependencies beyond webpack peer dependency.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install rename-webpack-plugin"],"cli":null},"imports":["const RenameWebpackPlugin = require('rename-webpack-plugin')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const RenameWebpackPlugin = require('rename-webpack-plugin');\n\nmodule.exports = {\n  entry: 'app.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'app.[chunkhash].js'\n  },\n  plugins: [\n    new RenameWebpackPlugin({\n      originNameReg: /(.*)thirdpart\\..*\\.js/,\n      targetName: '$1thirdpart.js'\n    })\n  ]\n};","lang":"javascript","description":"Shows minimal webpack configuration using rename-webpack-plugin to rename files matching a pattern (e.g., thirdpart.*.js to thirdpart.js).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}