{"library":"merge-files-webpack-plugin","title":"Merge Files Webpack Plugin","description":"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+).","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install merge-files-webpack-plugin"],"cli":null},"imports":["const MergeFilesPlugin = require('merge-files-webpack-plugin');","import MergeFilesPlugin from 'merge-files-webpack-plugin';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const path = require('path');\nconst MergeFilesPlugin = require('merge-files-webpack-plugin');\nconst ExtractTextPlugin = require('extract-text-webpack-plugin');\n\nmodule.exports = {\n  entry: {\n    a: './src/entryA.js',\n    b: './src/entryB.js'\n  },\n  output: {\n    path: path.resolve(__dirname, 'dist'),\n    filename: '[name].js'\n  },\n  module: {\n    rules: [\n      {\n        test: /\\.css$/,\n        use: ExtractTextPlugin.extract({ use: 'css-loader' })\n      }\n    ]\n  },\n  plugins: [\n    new ExtractTextPlugin({ filename: '[name].style.css' }),\n    new MergeFilesPlugin({\n      filename: 'combined.css',\n      test: /\\.css$/,\n      deleteSourceFiles: true\n    })\n  ]\n};","lang":"javascript","description":"Merges per-entry CSS files from extract-text-webpack-plugin into one combined.css, deleting intermediate files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}