This webpack plugin merges multiple files output by extract-text-webpack-plugin (e.g., per-entry CSS files) into a single file. Version 1.1.2 is the latest; no new releases and no activity on GitHub since 2018. It requires webpack 2+ and extract-text-webpack-plugin 2+. Useful for combining CSS from multiple entries, but limited to legacy webpack setups. Alternative: mini-css-extract-plugin (webpack 4+).
npm install merge-files-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Merges per-entry CSS files from extract-text-webpack-plugin into one combined.css, deleting intermediate files.
Migrate to mini-css-extract-plugin and remove merge-files-webpack-plugin (mini-css-extract-plugin supports merging via configuration).
Use a static string like 'css/bundle.css' instead of '[name].bundle.css'.
Always provide an explicit test (RegExp or string) that matches only the files you intend to merge.
Run: npm install merge-files-webpack-plugin --save-dev (correct name).
Use: const MergeFilesPlugin = require('merge-files-webpack-plugin');